Skip to content

feat(objectfled): investigate ISR-chunked streaming feasibility for upstream-managed driver (refs #3177) #3183

Closed

Description

@zackees

Goal

Investigate whether the upstream PaulStoffregen ObjectFLED library can be extended to support ISR-chunked streaming, and if so, add the conversion to FastLED's Bus::OBJECT_FLED driver.

Why this is investigation-first

Per #3023's body: "ObjectFLED async — library is synchronous-by-design; non-trivial to convert."

ObjectFLED's internal architecture is timer + DMA per pin where the timer's compare events drive the DMA. Converting to ISR-chunked streaming requires either:

  1. Upstream library changes — add a half/done-transfer interrupt + ring-buffer refill state machine to ObjectFLED itself. PaulStoffregen's call.
  2. FastLED-side fork — maintenance fork of ObjectFLED with the streaming additions. Adds long-term maintenance cost.
  3. Bypass ObjectFLED entirely — implement a new clockless driver for the same any-pin pool using a different DMA scheme. Possibly via FlexPWM or repurposing FTM modules.

Questions to answer before implementing

  • Read ObjectFLED source: does the library's timer + DMA architecture expose half/done interrupts at all?
  • Check ObjectFLED's upstream issue tracker for prior async-streaming discussions.
  • If upstream is willing: PR ObjectFLED itself with the streaming mode (preferred path).
  • If not: decide between fork, bypass, or "stays in sync block mode" (acceptable outcome — ObjectFLED's any-pin sync behavior is already useful).

Acceptance

If implementation proceeds:

  • ObjectFLED's any-pin clockless strips can run concurrently across N pins with no CPU wait() per frame.
  • Cross-driver wave8 byte-equivalence test confirms bit-identical wire output vs sync mode.
  • bash autoresearch teensy40 --object-fled continues to pass.

If investigation rules it out:

  • Document the finding as a closing comment.
  • ObjectFLED's sync mode remains the only supported behavior; users who need async take FlexIO or LPUART instead.

Cross-references

Activity

  1. zackees commented on Jun 27, 2026

    @zackees
    MemberAuthor

    Closing as deferred future work. ObjectFLED ISR-chunked streaming feasibility study. ObjectFLED is upstream-managed (third-party library, FastLED maintains a vendored fork); streaming work would either need upstream coordination or a divergent fork. No current user blocker for sync mode. Tracked at meta level under #3023.

  2. moved this from Triage to Done in FastLED Trackeron Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions