4 Commits

Author SHA1 Message Date
deadprogram dc6edbb694 ws2812: fix PIO TX FIFO overflow on rp2040/rp2350 dropping LEDs
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>
2026-07-06 20:21:35 +02:00
Daniel Esteban e960a6ff57 fix issue #858 2026-04-17 10:27:04 +01:00
Carlos Henrique Guardão Gandarez 21a7d0a96a ws2812: add brightness control 2026-04-11 16:54:48 +01:00
Carlos Henrique Guardão Gandarez 4071028e85 ws2812: add PIO support for RP2040/RP2350
Integrate PIO support directly into the existing Device.
NewWS2812() now uses PIO for hardware-timed control
on RP2040/RP2350 and falls back to bit-banging on other platforms.

No changes to the exported API surface.
2026-04-07 21:38:57 +02:00