Skip to content

ws2812: fix PIO TX FIFO overflow on rp2040/rp2350 dropping LEDs#875

Open
deadprogram wants to merge 1 commit into
devfrom
ws2812-rp-fix
Open

ws2812: fix PIO TX FIFO overflow on rp2040/rp2350 dropping LEDs#875
deadprogram wants to merge 1 commit into
devfrom
ws2812-rp-fix

Conversation

@deadprogram

Copy link
Copy Markdown
Member

PutRGB calls TxPut which is non-blocking and silently discards data when the TX FIFO is full.

Wait for FIFO space before each PutRGB using runtime.Gosched() to yield cooperatively, matching the pattern used by piolib.WriteRaw.

Should fix #869

PutRGB calls TxPut which is non-blocking and silently discards data
when the TX FIFO is full.

Wait for FIFO space before each PutRGB using runtime.Gosched() to
yield cooperatively, matching the pattern used by piolib.WriteRaw.

Signed-off-by: deadprogram <ron@hybridgroup.com>
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.

[rp2040/pio] WS2812b not working properly in 0.35, fine in 0.34

1 participant