Skip to content

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

Merged
deadprogram merged 1 commit into
devfrom
ws2812-rp-fix
Jul 6, 2026
Merged

ws2812: fix PIO TX FIFO overflow on rp2040/rp2350 dropping LEDs#875
deadprogram merged 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>
@deadprogram

Copy link
Copy Markdown
Member Author

Thank you for review @soypat now merging.

@deadprogram deadprogram merged commit dc6edbb into dev Jul 6, 2026
1 check passed
@deadprogram deadprogram deleted the ws2812-rp-fix branch July 6, 2026 18:21
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

2 participants