Skip to content

fix(rp): drive PIO data pins LOW when idle; drop stale parallel docs (#4619 follow-up) - #4626

Merged
zackees merged 1 commit into
masterfrom
fix/rp-slim-bridge-review
Sep 25, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/rp-slim-bridge-review

Conversation

@zackees

@zackees zackees commented Sep 25, 2026

Copy link
Copy Markdown
Member

Follow-up to merged #4619 (#4589), addressing code-review findings.

1. Floating data line. ChannelEngineRpPio deinitializes the PIO TX peripheral after every frame (and before each strip's configure()), and RpPioTxPeripheral::deinitialize() left the pad as an input; SlimBridgeController::init() is empty, so nothing drove the pin before the first frame either.

  • RpPioTxPeripheral::deinitialize() now parks every lane (mPin .. mPin+mLaneCount-1) as a SIO output driven LOW: gpio_put(0) -> dir IN -> func SIO -> dir OUT, which keeps the existing no-glitch ordering. This covers legacy and Channel-API strips because both go through this peripheral.
  • ClocklessRpPio::init() (RP-only) drives DATA_PIN LOW and makes it an output before the first frame, which restores the old setOutput().
  • No other platform is touched.

2. Stale docs. PARALLEL.md loses the "Manual Parallel Setup" section, which used the deleted fl::ParallelClocklessController / clockless_arm_rp2040.h. The intro now describes the SlimBridgeController -> ChannelEngineRpPio path. The comments in clockless_rp_pio_auto.h and examples/SpecialDrivers/RP/Parallel_IO/Parallel_IO.ino are updated. Nothing in src/ or examples/ references the deleted type any more.

Verification

  • bash lint: passes.
  • bash test --cpp: passes (the changed files are RP-only, so the host build is unchanged).
  • bash compile rp2040 --examples Blink, --examples BlinkParallel, rp2350 --examples Blink: OK.
  • bash compile rp2040 --examples SpecialDrivers/RP/Parallel_IO --no-filter: OK. Without --no-filter its @filter skips it on rp2040.

Hardware validation is still deferred to #4623.

🤖 Generated with Claude Code

…4619 follow-up)

Follow-up to #4619 (issue #4589) review findings:
- RpPioTxPeripheral::deinitialize() now parks every lane as a SIO output
  driven LOW instead of an input, so the line no longer floats between
  frames after ChannelEngineRpPio tears the peripheral down.
- ClocklessRpPio::init() drives DATA_PIN LOW as an output before the
  first frame (the old controller called setOutput()).
- PARALLEL.md, clockless_rp_pio_auto.h and the Parallel_IO example no
  longer reference the deleted ParallelClocklessController.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackees
zackees merged commit 32372a6 into master Sep 25, 2026
87 of 89 checks passed
@zackees
zackees deleted the fix/rp-slim-bridge-review branch September 25, 2026 05:13
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Sep 25, 2026
@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown

Review in Change Stack →

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 configuration

Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 4dd8ca3a-9326-4adb-b28f-674674c899cd

📥 Commits

Reviewing files that changed from the base of the PR and between b19af9e and 20ef25f.

📒 Files selected for processing (5)
  • examples/SpecialDrivers/RP/Parallel_IO/Parallel_IO.ino
  • src/platforms/arm/rp/rpcommon/PARALLEL.md
  • src/platforms/arm/rp/rpcommon/clockless_rp_pio.h
  • src/platforms/arm/rp/rpcommon/clockless_rp_pio_auto.h
  • src/platforms/arm/rp/rpcommon/rp_pio_tx_peripheral.cpp.hpp
 _______________________________________
< Feature flags up; bug sightings down. >
 ---------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

zackees added a commit that referenced this pull request Sep 25, 2026
createProgram() called pio_gpio_init() only for mPin. Since #4626 parks
every lane as a plain SIO output LOW between frames, lanes 1..N-1 of a
batch stayed LOW instead of carrying data. Follow-up to #4626 / #4589.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant