Repository navigation
feat(spi): slim SPI bridge controller for clocked addLeds<> (#4585) - #4613
Merged
Merged
Conversation
…4585) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ypasses PCH (#4585) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…4585) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tests (#4585) legacy/reference bound to capturedData.back() by reference, then reset() cleared the vector (garbage size at line 194). LED buffers were stack-local while earlier cases' controllers persist and are re-shown (ASAN stack-use-after-return). Copy captures and make buffers static. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: FastLED/FastLED/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks 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 |
This was referenced Sep 25, 2026
Closed
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.
Closes #4585
Part of #4580
When
FASTLED_SPI_USES_CHANNEL_APIis set (ESP32, Teensy 4.x, RP2040/RP2350), the clockedaddLeds<ESPIChipsets, DATA_PIN, CLOCK_PIN, ...>overloads now usefl::SlimSpiBridgeController(src/fl/channels/slim_spi_bridge_controller.h). They no longer build aTypedChannel+ staticChannelPtr. An explicit trailingfl::Bus B/B_WHICHis still passed through.Chipsets still on the old path: only MY9221. It stays on
TypedChannel<B, SpiChipsetConfig>becauseChannel::encodeMY9221()only emits bytes when the channel is managed (see the header comment).Validation
tests/fl/channels/spi_legacy_golden.cpp: for each chipset/overload, compares the slim path's bytes against a reference built throughFastLED.add(ChannelConfig), which is the same SpiEncoder/SpiChipsetConfig/Channel encoder that the old TypedChannel path used on master. It also checks the frame structure by hand. Passes in quick mode and in--debug(ASAN/UBSAN).bash test slim_bridge_controller: passes.bash test --cpp: passes.bash lint: no blocking violations.bash compile {esp32s3,teensy41,rp2040} --examples Apa102: all succeed.Bloat (esp32s3, examples/Apa102,
bash bloat esp32s3 --build)🤖 Generated with Claude Code