Skip to content

feat(rp2040): validate SPI public API loopback - #3672

Merged
zackees merged 1 commit into
masterfrom
feat/rp2040-spi-public-api-protocol
Jul 15, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2040-spi-public-api-protocol

Conversation

@zackees

@zackees zackees commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Closes #3660\n\nAdds RP2040 public FastLED.addLeds(..., fl::Bus::SPI, 1) support and a fbuild-backed AutoResearch SPI1 loopback mode for APA102/SK9822.\n\nHardware evidence on Pico COM12 (2E8A:000A): GPIO11 MOSI -> GPIO8 MISO, GPIO10 SCK; APA102 and SK9822 each passed black, RGB primaries, white, and walking-pixel frames, 144 bytes at 8 MHz with PL022 wire idle.\n\nValidation: �ash test channel_engine_rp_spi, �ash test channel_engine_rp_spi --debug, focused Python lint, and clean �ash autoresearch HIL runs.

Summary by CodeRabbit

  • New Features

    • Added support for selecting a specific SPI bus instance on RP2040 and RP2350 boards.
    • Added RP2040 public API validation for APA102 and SK9822 LED chipsets.
    • Added loopback checks covering multiple display patterns, frame data, and bus idle behavior.
  • Documentation

    • Updated the Channels API example to demonstrate selecting a specific SPI instance.
  • Bug Fixes

    • Improved SPI channel configuration consistency across supported RP platforms.

@zackees
zackees merged commit 8672cc7 into master Jul 15, 2026
6 checks passed
@zackees
zackees deleted the feat/rp2040-spi-public-api-protocol branch July 15, 2026 18:12
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 15, 2026
@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 63b5e526-e858-46fa-a415-d7dc306105a6

📥 Commits

Reviewing files that changed from the base of the PR and between 7d30a32 and 2a24f47.

📒 Files selected for processing (6)
  • ci/autoresearch/args.py
  • ci/autoresearch/phases.py
  • ci/autoresearch/test_rp_spi_public_api.py
  • examples/AutoResearch/AutoResearchRemoteRpSpiMethods.cpp
  • src/FastLED.h
  • src/fl/channels/README.md

📝 Walkthrough

Walkthrough

Adds RP2040/RP2350 SPI channel-instance selection, a remote APA102/SK9822 public API loopback RPC, and AutoResearch CLI and phase support that validates captured SPI frames across multiple patterns.

Changes

RP2040 SPI public API validation

Layer / File(s) Summary
SPI channel instance API
src/FastLED.h, src/fl/channels/README.md
Enables the Channel API on RP2040/RP2350 and adds the B_WHICH SPI instance parameter to FastLED SPI overloads and documentation.
Remote SPI loopback RPC
examples/AutoResearch/AutoResearchRemoteRpSpiMethods.cpp
Adds rpSpiPublicApiLoopback, drives FastLED output for APA102 or SK9822, captures SPI1 bytes, and validates frame contents.
AutoResearch test dispatch and validation
ci/autoresearch/args.py, ci/autoresearch/phases.py, ci/autoresearch/test_rp_spi_public_api.py
Adds CLI selection, phase dispatch, subprocess execution, six test patterns, frame metadata checks, and exit-code handling.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#3668 — Provides the fixed SPI0/SPI1 infrastructure and instance routing used by this change.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rp2040-spi-public-api-protocol

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.

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.

feat(rp2040): phase 7 — SPI LED protocol conformance and public API

1 participant