Skip to content

docs(channels): post-#2461 README accuracy sweep - #2462

Merged
zackees merged 1 commit into
masterfrom
chore/channels-readme-post-2459
May 11, 2026
Merged

zackees merged 1 commit into
masterfrom
chore/channels-readme-post-2459

Conversation

@zackees

@zackees zackees commented May 11, 2026 •

Copy link
Copy Markdown
Member

Summary

After #2461 landed (non-template `FastLED.add()` + typed `mBus` + `mAffinity` removal), I had a sub-agent audit the channels README for any spots that still described the old API shape.

The README was mostly already accurate (because the in-flight #2461 edits caught the main cases), but four small leftovers remained:

  1. "Passing `fl::Bus::AUTO` clears the affinity" → reworded to "skips the pinning step" — matches the now-typed `mBus` field, not the deleted `mAffinity` string.
  2. Engine selection dispatch-flow bullet list — rewrote to show that `Channel::showPixels()` derives the bus key from `cfg.options.mBus` via `busName(mBus)` before passing it to `selectDriverForChannel`. Fixed the "Affinity-miss diagnostic" cross-reference to match the actual section title "Bus-miss diagnostic".
  3. Reference → `channel.h` — dropped the false "non-template `create(cfg)` and templated `create(cfg)` factories" claim. Only the non-template form survives post-feat(channels): non-template FastLED.add() + typed mBus + remove mAffinity (closes #2459) #2461; compile-time bus pinning lives on `TypedChannel`.
  4. Reference → `options.h` — replaced "affinity" with "`mBus` driver selection" and added "rgbw" to the field summary.

Verified clean (no fixes needed)

The sub-agent's grep confirmed zero remaining stale references in the README:

  • No `FastLED.addBus::X(cfg)`, `FastLED.add(Bus::X, cfg)`, or `Channel::createBus::X(cfg)` examples.
  • No `mAffinity` or `isKnownBusName()` mentions.
  • The compile-time vs runtime mode narrative (lines 22-25) accurately describes both paths.
  • `FastLED.add(cfg)` description correctly notes the auto-`enableAllDrivers()` + `FL_WARN_ONCE` behaviour with `FASTLED_SUPPRESS_RUNTIME_DRIVER_WARNING`.
  • Engine Affinity example uses `opts.mBus = fl::Bus::RMT` / `fl::Bus::SPI`.
  • Custom/mock driver section correctly directs users to `manager.addDriver(...)` + `clearAllDrivers()` / `setExclusiveDriver(name)`.
  • The "planned" callout for `addLeds<..., fl::Bus B>` (Channel API: legacy FastLED.addLeds<..., fl::Bus B> trailing template parameter #2460) is appropriately framed.

Test plan

  • `bash lint --cpp` — clean.
  • No code changes; only `src/fl/channels/README.md` (+7 / −7).

Files changed (1)

  • `src/fl/channels/README.md`

Related

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated channel driver selection documentation to clarify runtime behavior and selection priorities.
    • Refined documentation describing the engine selection flow.
    • Corrected API reference documentation for channel factory methods.

Review Change Stack

After #2461 merged (non-template FastLED.add + typed mBus + mAffinity
removal), four small spots in the channels README still described the old
shape. This pass aligns the wording with what shipped:

  * "Passing fl::Bus::AUTO clears the affinity" -> "skips the pinning step"
    (matches the now-typed mBus field, not the deleted mAffinity string).
  * Dispatch-flow bullet list under "Engine selection" rewritten to show
    that Channel::showPixels derives the bus key from cfg.options.mBus via
    busName(mBus) before passing it to selectDriverForChannel. Fixed the
    "Affinity-miss diagnostic" cross-reference to match the actual section
    title "Bus-miss diagnostic".
  * Reference -> channel.h line dropped the false "non-template create(cfg)
    and templated create<Bus B>(cfg) factories" claim. Only the non-
    template form survives; compile-time bus pinning lives on TypedChannel.
  * Reference -> options.h line replaced "affinity" with "mBus" and added
    "rgbw" to the field summary.

No code changes; README only. bash lint clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented May 11, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: abe20f26-e74c-4e15-a246-4092b2bfcb00

📥 Commits

Reviewing files that changed from the base of the PR and between 4afad42 and 2a54aa0.

📒 Files selected for processing (1)
  • src/fl/channels/README.md

📝 Walkthrough

Walkthrough

Documentation updates to src/fl/channels/README.md clarify runtime driver selection behavior for channels. Changes explain fl::Bus::AUTO semantics, detail the Channel::showPixels() engine selection flow with findDriverByName fallback, and remove reference to a templated factory form.

Changes

Channel Driver Selection Documentation

Layer / File(s) Summary
AUTO Bus Behavior Clarification
src/fl/channels/README.md
Clarified that fl::Bus::AUTO skips driver pinning and leaves selection entirely to ChannelManager priority dispatch.
Engine Selection Flow Documentation
src/fl/channels/README.md
Detailed Channel::showPixels() execution: derives bus key from cfg.options.mBus, performs silent findDriverByName when bus is not AUTO, emits error on miss, and iterates drivers by priority using canHandle() as fallback.
API Reference Update
src/fl/channels/README.md
Removed documentation of templated create<Bus B>(cfg) factory form; confirmed that only non-template Channel::create(cfg) is available in fl/channels/channel.h.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • FastLED/FastLED#2456: Introduces Channel driver-selection flow and AUTO/affinity behavior that this PR documents.
  • FastLED/FastLED#2454: Implements runtime FastLED.add(fl::Bus, cfg) overload that sets/clears mAffinity, driving the channel dispatch behavior described in these docs.
  • FastLED/FastLED#2459: Removes the templated Channel::create factory that this PR removes from documentation.

Poem

🐰 A README refined with grace,

AUTO skips the pinning race,

Selection flows through priority's song,

Engines find where they belong! 🚀

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'docs(channels): post-#2461 README accuracy sweep' accurately and concisely describes the main change—a documentation update to fix README accuracy issues following PR #2461 API changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/channels-readme-post-2459

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees
zackees merged commit 284b92a into master May 11, 2026
6 of 8 checks passed
@zackees
zackees deleted the chore/channels-readme-post-2459 branch May 30, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant