Skip to content

Allows strings of ws2811 pixels to create a graphics display#112

Draft
mores wants to merge 1 commit into
Pi4J:mainfrom
mores:zigZag
Draft

Allows strings of ws2811 pixels to create a graphics display#112
mores wants to merge 1 commit into
Pi4J:mainfrom
mores:zigZag

Conversation

@mores

@mores mores commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@stefanhaustein

Copy link
Copy Markdown
Collaborator

Can you explain this some more?

The WS2811 driver already has a ctor supporting a pixel map:

public Ws281xDriver(Spi spi, int width, int height, int[] pixelMap) {

And it's possible to attach multiple drivers to a display for different display regions.

Is this insufficient for some cases? How?

@mores

mores commented Jan 22, 2026

Copy link
Copy Markdown
Contributor Author

AFAIK - The existing ws281x driver uses SPI to communicate with the pixels.

In my case - I am using a https://pixelcontroller.com/store/featured/99-falcon-picap-v2.html which utilizes /dev/dri/card0 and requires a device tree overlay. ( perhaps in the future this code could be included in p4j )

This HAT is capable of controlling 810 pixels on 4 ports = 3240 pixels total.
These pixels can then be inserted into a matrix like this https://gilbertengineeringusa.com/products/matrix-4x8 in a zig zag pattern to create a "graphics display".

@stefanhaustein

Copy link
Copy Markdown
Collaborator

Sorry for the delay... Are you going to add an actual driver? I'd prefer if we could start there and then see if we can share code with the existing ws281x driver zigzag management....

@mores

mores commented Jan 28, 2026

Copy link
Copy Markdown
Contributor Author

There are multiple parts to "driving this hat":

  1. deviceTreeOverlay: https://github.com/mores/TheMissingLink/tree/main/Falcon_PiCap_V2/deviceTreeOverlay
  2. c library to call drm methods: https://github.com/mores/TheMissingLink/blob/main/Falcon_PiCap_V2/c/drm.c
  3. java ffm to call c library and ColorBufferWriter.java:
    https://github.com/mores/TheMissingLink/tree/main/Falcon_PiCap_V2/ffm/src/main/java/io/github/mores

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants