Skip to content

meta(esp32): optional Arduino integration and remaining dependency isolation #4888

Closed
5 of 5 issues completed

Description

@zackees

Context

Follow-up to #4887 and the ESP32 memory/dependency investigation. Native console output now has an optional weak application writer, demonstrating how FastLED can integrate with an already linked Arduino component without making that component mandatory.

Further research identified embedded storage and SPI integration opportunities, a transitive header enforcement gap, an independent P4 framework startup root, and remaining physical USB validation. These are separate tasks with different evidence requirements; a weak symbol alone is not a complete fix for all of them.

Proposal

Track the focused work below as native GitHub sub-issues. Preserve tested behavior while making Arduino integration optional and measuring actual retention.

Acceptance criteria

  • Each implementation child has focused RED -> GREEN evidence, a real production use, and relevant link-map or hardware verification.
  • Measure comparable flash, static RAM and relevant runtime heap; do not infer savings from header removal.
  • Preserve normal Arduino application APIs and explicit component ownership.
  • Physical USB acceptance remains separate from compile and UART evidence.
  • Complete all attached children or document an explicit maintainer-approved scope change before closing this tracker.

Decisions

  • Scope: ESP32 first; preserve shared ESP8266 filesystem behavior when touched. Cross-platform expansion is separate.
  • Optional means an explicitly linked provider/component, not merely an installed header. Weak undefined references do not extract providers from static archives.
  • Keep preprocessor selection at the backend boundary; avoid guessed Arduino class layouts, mangled method names or automatic hardware takeover.
  • Keep public storage terminology generic (getEmbeddedFs), preserve separate storage translation units, and retain native fallbacks where supported.
  • Integrate checks into existing lint/test commands; add no GitHub Actions workflows.
  • Existing RMT network weak-link detection is prior art, not new unfinished work (perf(esp32dev): Wi-Fi probe keeps libnet80211 live (+1.3 KB RAM) despite weak linking #4791). fix(esp32): remove Arduino console retention with native SDK backends #4887 remains the console implementation PR, not a substitute for these children.

Related issues

Work items

These are attached as native GitHub sub-issues.

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Sequential progress: #4889 is implemented/published in #4894, #4890 in #4896, and #4891 now in #4897 (full CI requested). Stack/master integration remains pending, so this tracker stays open.

    #4891 adds the transitive native ESP32 dependency check to existing lint. Selectively restoring the previous FastLED.h import was caught by normal lint, then the fix was restored and lint passed. 26 focused tests, 171 Rust tests (2 ignored), native debug326units/95examples, real SDK probes and physical classic RMT3scenarios all pass. Matched bloat shows zero flash/static change for noSPI and native HOST2 APA102. Details: #4891 and its PR.

    Next child: #4892, the independent P4 framework startup Serial0 root. Physical USB matrix remains #4893; no physical USB completion is claimed from compile/UART evidence.

  2. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    All children resolved: #4889, #4890, #4891, #4892 (not planned, upstream), #4893 (via #4902, #4904, #4906, #4908, #4909).

  3. moved this from Triage to Done in FastLED Trackeron Oct 23, 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