Repository navigation
docs(channels): README accuracy sweep + drop legacy framing - #2466
Conversation
Refresh the channels README and one related code docstring against the current API surface (post #2459 / #2460 / #2465): README: - Compile-time bus binding now lists both entry points equally (`fl::TypedChannel<...>::create()` and `addLeds<..., fl::Bus::X>`). The "planned addLeds<..., fl::Bus::X> — see #2460" note is gone: that feature shipped via #2465. - Drop "Backwards Compatible API" framing for `addLeds<>` — both the Channel API and the template `addLeds<>` API are first-class; pick by call-site shape, not by maturity. - Drop "Legacy `addLeds<>` Bus pinning" / "legacy FastLED.addLeds<...> shape" labels — these are the actively-supported entry points. - Expand the Engine Priority table to match `fl/channels/bus_priorities.h` exactly: I2S_SPI / LCD_SPI (10), PARLIO (4), LCD_RGB (3), RMT / LCD_CLOCKLESS (2), I2S / FLEX_IO / OBJECT_FLED (1), SPI / BIT_BANG / STUB (0), UART (-1). Split by platform family (ESP32 / Teensy 4.x / Portable). - Rename "Engine Affinity" section to "Per-Channel Bus Pinning (Mixed- Timing Parallel Output)" — the section was named after the removed string `mAffinity` field. Update internal back-references. - Trim 3.10.3-era "backstory" framing on `enableDrivers<>` / `FASTLED_DISABLE_LEGACY_DRIVER_REGISTRY` — describe what the toggle does today, not what it restores from history. - Update bus-miss diagnostic description to list all three remediations the actual `FL_ERROR` emits (enableDrivers / enableAllDrivers / addLeds<..., fl::Bus::X>). - Reference section: add `fl/channels/bus_priorities.h`, list `busKeepAlive<B>()`, expand the `ChannelManager` method list to include `setDriverPriority` / `setDriverEnabled` / `setExclusiveDriver`. src/fl/channels/channel.h: - `Channel::create()` docstring no longer references the removed `config.affinity` field. Replace with current `cfg.options.mBus` behavior + the showPixels() fallback semantics. No code behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR updates FastLED Channels API documentation to clarify compile-time vs runtime bus/driver selection, document the optional ChangesFastLED Channels API Documentation Clarification
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Poem
✨ 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 |
Summary
Refresh the channels README and one related code docstring against the current API surface (post-#2459 / #2460 / #2465). The user asked to find outdated information and to drop legacy framing — this is the result.
What changed
README:
addLeds<..., fl::Bus::X>is no longer "planned". Section text now lists both compile-time entry points side-by-side (TypedChannel<>::create()andaddLeds<..., fl::Bus::X>). The "the plannedaddLeds<..., fl::Bus::RMT>trailing template parameter — see Channel API: legacy FastLED.addLeds<..., fl::Bus B> trailing template parameter #2460" note is removed: that shipped via feat(channels): addLeds<..., fl::Bus B> trailing parameter (closes #2460) #2465.addLeds<>. Both the Channel API and the templateaddLeds<>API are first-class; pick by call-site shape, not by maturity. The "Backwards Compatible API" section is renamed "TemplateaddLeds<>API" and the "API Status" section is rewritten to "Which API to Use".addLeds<>bus-pinning section, the bus-miss diagnostic remediation list, and the 3.10.3-era framings aroundenableDrivers<>/FASTLED_DISABLE_LEGACY_DRIVER_REGISTRY.fl/channels/bus_priorities.hexactly:I2S_SPI/LCD_SPI(10),PARLIO(4),LCD_RGB(3),RMT/LCD_CLOCKLESS(2),I2S(1),SPI(0),UART(-1).FLEX_IO/OBJECT_FLED(1).BIT_BANG/STUB(0).I2S_SPIandLCD_SPIare higher at 10.mAffinityfield; the body already used the moderncfg.options.mBusAPI.FL_ERRORemits (fl::enableDrivers<>,FastLED.enableAllDrivers(),FastLED.addLeds<..., fl::Bus::X>).fl/channels/bus_priorities.h, listbusKeepAlive<B>(), expand theChannelManagermethod list withsetDriverPriority/setDriverEnabled/setExclusiveDriver.src/fl/channels/channel.h:Channel::create()docstring no longer references the removedconfig.affinityfield. Replaced with currentcfg.options.mBussemantics and the showPixels() fallback behavior.Test plan
bash lint --cpp: clean🤖 Generated with Claude Code
Summary by CodeRabbit
Channel::createdocumentation with details on driver pinning and fallback behavior during pixel display operations.