Repository navigation
Description
What this meta tracks
ISR-chunked streaming conversion for FastLED's clockless and clocked driver family. Each driver gets evaluated for whether its peripheral supports half-/done-transfer ISR + ring-buffer refill, and a sub-issue for the conversion is filed under this meta.
Why
Today's drivers fall into three patterns for how a frame of LED data reaches the wire:
| Pattern | Driver examples | RAM cost | Latency cost |
|---|---|---|---|
| One-shot block DMA | RMT5 (current), SPI (current), LCD_CLOCKLESS (current), FlexIO (current), LPUART (planned for #3157), ObjectFLED | full frame buffer (~3 bytes × N LEDs) | show() blocks for whole-frame transmission |
| ISR-chunked streaming | PARLIO ✅ (shipped), I2S ✅ (shipped) | small ring buffer (~2 chunks × wave8 size) | show() enqueues chunk-0, returns; ISR refills chunks 1..N |
| CPU polled streaming | (none today; would apply to tiny MCUs without DMA) | minimal | CPU-bound, blocks |
The wave8 streaming-ISR pattern (originally landed for PARLIO under #2428 / #2992, then for I2S) gives 3-10× RAM reduction on large grids and async semantics out of the box. Most other clockless drivers in the codebase still use one-shot block DMA and would benefit from the same conversion if the peripheral's hardware can support half/done-transfer ISRs.
Sub-issues
Each is a focused PR-able conversion against one peripheral. Order is roughly by ROI (RAM savings × user demand):
- ESP32 RMT5 — high ROI; RMT memory blocks are small (typically 384B per channel) but multi-strip configurations stack up. Streaming-ISR would let large channel counts share fewer memory blocks. Filed alongside this meta.
- ESP32 SPI — medium ROI; clocked-LED users with APA102/SK9822 large strips currently allocate the full pixel buffer in RAM. Filed alongside this meta.
- ESP32 LCD_CLOCKLESS — medium ROI; the LCD/I80 path is the highest-throughput on ESP32-S3 but currently runs in block mode. Filed alongside this meta.
- Teensy 4 FlexIO — covered by [meta] Teensy 4 channels-API driver coverage + verification fixtures (supersedes #2764, #3006) #3023 §D (existing). FlexIO's shifter+timer model already has the half-empty interrupt; conversion is wiring not silicon.
- Teensy 4 LPUART — covered by [meta] Teensy 4 channels-API driver coverage + verification fixtures (supersedes #2764, #3006) #3023 §D + feat(lpuart): finish Teensy 4 LPUART engine + encoder + bus_traits + canHandle() host test (split from #3122 B1 / refs #3023) #3157 phase-2-async follow-up. Sync mode lands first per feat(lpuart): finish Teensy 4 LPUART engine + encoder + bus_traits + canHandle() host test (split from #3122 B1 / refs #3023) #3157.
- Teensy 4 ObjectFLED — upstream library is synchronous-by-design per [meta] Teensy 4 channels-API driver coverage + verification fixtures (supersedes #2764, #3006) #3023's body. Sub-issue filed for visibility but blocked on upstream architecture decisions; not actionable from inside FastLED today.
- ESP32 PARLIO — ✅ shipped under feat(channels): compile-time Bus binding via templated ChannelConfig (eliminates Channel API binary bloat) #2428 / feat: add ISR-backed channel poll wakeups #2992 (the canonical reference implementation).
- ESP32 I2S — ✅ shipped.
Out of scope for this meta
- Tiny MCUs (LPC8xx, AVR) — RAM budget too small for ring-buffer streaming to be worthwhile. Stays in one-shot mode.
- The rendering-hint API (
syncvsasync) — separate issue, controls howshow()reports back to the user. - The transport-hint API (
one_shotvsisr_streamvscpu_poll) — separate issue, controls which path the driver picks when both are supported.
Cross-references
- Reference implementations:
src/platforms/esp/32/drivers/parlio/parlio_engine.cpp.hpp("PHASE 1: ASYNC MODE" sections),src/platforms/esp/32/drivers/i2s/channel_driver_i2s.{h,cpp.hpp}. - Parent / related metas: [meta] Teensy 4 channels-API driver coverage + verification fixtures (supersedes #2764, #3006) #3023 (Teensy 4 channels-API), feat: add ISR-backed channel poll wakeups #2992 (ISR-backed channel
poll()wakeups — thechannel_poll_signalplumbing the conversions sit on), feat(channels): compile-time Bus binding via templated ChannelConfig (eliminates Channel API binary bloat) #2428 (original wave8 + ISR ring buffer). - API surface for users to express preferences: rendering-hint + transport-hint issues filed alongside this meta.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 16, 2026
Companion API issues for hint-controlled behavior filed alongside this meta:
RenderingHintenum (Auto=0,Sync=1,Async=2) — controls whenshow()returns.TransportHintenum (Auto=0,OneShot=1,IsrStream=2,CpuPoll=3) — controls how the driver delivers bytes.The two are orthogonal:
RenderingHintis a caller-facing knob (sync vs async show),TransportHintis a driver-shape knob (one-shot DMA vs ISR-chunked vs CPU-polled). Both default toAuto = 0so default-constructed channels keep working without changes. The streaming sub-issues here (#3178–#3183) deliver theIsrStreampath on each driver.zackees commentedon Jun 16, 2026
Retraction: the cross-link to #3184 / #3185 above is withdrawn — both hint issues have been closed as premature. The sync-vs-async rendering hint and the one-shot-vs-ISR-stream-vs-CPU-poll transport hint should not be locked into an API right now. This meta continues to track the per-driver ISR-streaming conversions on their own merits; the public hint API will be revisited once those conversions have shaken out.
zackees commentedon Jun 27, 2026
Closing as all sub-issues for clockless ISR-chunked streaming are now deferred/closed:
No active streaming-conversion work in scope. ESP32 PARLIO/I2S streaming is the existing precedent; Teensy 4 drivers all work in sync mode at noise-floor accuracy. Reopen when a back-to-back-frame scenario requires streaming.