Repository navigation
exp(esp32): legacy RMT5 addLeds off fl::Channel, still bridged via ChannelManager (-22 KB Blink) - #4576
Closed
zackees wants to merge 2 commits into
Closed
exp(esp32): legacy RMT5 addLeds off fl::Channel, still bridged via ChannelManager (-22 KB Blink)#4576zackees wants to merge 2 commits into
zackees wants to merge 2 commits into
Conversation
…lManager Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…cy RMT5 The legacy controller stays a plain CPixelLEDController (not an fl::Channel) but registers the RMT5 driver with ChannelManager, which owns the frame flush and async drain. Drops the custom frame hook. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 24, 2026
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft / experiment, not for merge yet.
Change
ClocklessIdf5(ESP32 RMT5) is no longer anfl::Channel. It is a plainCPixelLEDControllerthat still bridges throughChannelManager:ChannelManager(BusTraits<Bus::RMT>::registerWithManager(), idempotent).show()and the async drain.showPixelsencodes into one ownedChannelDataand enqueues it on the RMT5 driver, the same submit stepfl::Channelused. The buffer is cleared and refilled each frame, so it allocates nothing after the first frame.Removed from a legacy sketch's build:
fl::Channelobject, including its runtime RGB reorder pipeline;Bloat: ESP32-S3 Blink, same base (
2ea73441fe) and toolchain"Full split" is the earlier revision of this PR, which also dropped
ChannelManager. It is shown for comparison only.firmware.binWhere the bytes went (symbol flash vs master)
fl::ChannelobjectChannelManagerKeeping the bridge costs about 6.8 KB relative to the full split. That is
ChannelManagerplus the semaphore it uses for its poll signal. The largest cut, thefl::Channelobject, holds in both variants.Hardware validation: ESP32-C6, AutoResearch
Pin discovery found a TX GPIO 0 → RX GPIO 1 loopback.
bash autoresearch esp32c6 --rmt --legacy --chipset ws2818 --strip-sizes 1,2,3,4,100addLeds→ thisClocklessIdf5→ChannelManager→ RMT5.FL_ESP32_LEGACY_CLOCKLESS_USE_RMT=1is injected.bash autoresearch esp32c6 --rmt --strip-sizes 1,2,3,4,100ChannelManager→ RMT5bash autoresearch esp32c6 --rmt --legacy --chipset ws2814 ...malformed_response("WS2814 response requires a non-empty patterns list"). Also fails identically on master2ea73441fe, so it is pre-existing and filed as #4578.The plain
--rmt --legacyrun (WS2812) cannot select RMT on the C6: AutoResearch only injects the RMT override for WS2814/WS2818, so the firmware reportsLegacyDriverMismatch(PARLIO-bound). That is why WS2818 is the legacy RMT evidence.Compile checks (ESP32-S3, this revision)
Blink, BlinkParallel, RGBW, RGBWW, Sailboat and ElPanelReactive all compile. RGBWW, Sailboat and ElPanelReactive use the channels API.
One BlinkParallel run failed once and passed on two re-runs. The error output was not captured, so the cause is unknown.
Not yet
Trade-off
Legacy
addLedson RMT5 drops, as RMT4 already does:All of these stay available through
FastLED.add(Channel).🤖 Generated with Claude Code