You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(rp2040): phase 7 — SPI LED protocol conformance and public API #3660
Implementation Phase 7 of #3648. Depends on Phase 6 (qualified true-SPI transport).
Scope
Correct LED protocol framing and public API integration: fix SK9822's vendor-specified all-ones end frame; audit APA102/APA102C start frame, brightness, BGR order, and end clocks; reuse SpiEncoder; and drive the path through FastLED.addLeds(...)/show() with explicit Bus::SPI selection.
Acceptance criteria
RED-to-GREEN golden tests cover 0, 1, 31, 32, 33, and long LED counts, brightness boundaries, and exact transmitted bytes.
Hardware does not duplicate chipset framing already owned by SpiEncoder.
The current all-zero SK9822 golden behavior is replaced with datasheet-conformant all-ones framing.
Attached-board gate
Using Phase 6's loopback qualification, prove APA102 and SK9822 black, RGB primaries, white, brightness sweep, walking pixel, repeated frames, and long-chain end-frame behavior. Public API data and captured transport bytes must agree; visible strip output is supplementary evidence.
Software protocol work merged in #3669 (commit 34a86a7). SK9822 now emits the vendor-required all-one end clocks across normal, HD, and auto-brightness encoders; zero-LED auto frames are complete. Golden host coverage passes for 0/1/31/32/33/257 LEDs, brightness boundaries, BGR bytes, frame size, and every trailing clock byte.\n\nThe hardware transport remains byte-transparent (it sends the ChannelData encoding without framing), so no duplicate framing path was introduced. This phase remains open only for its attached-board explicit-Bus::SPI API and APA102/SK9822 loopback/strip evidence after #3631.
Activity
zackees commentedon Jul 15, 2026
Software protocol work merged in #3669 (commit 34a86a7). SK9822 now emits the vendor-required all-one end clocks across normal, HD, and auto-brightness encoders; zero-LED auto frames are complete. Golden host coverage passes for 0/1/31/32/33/257 LEDs, brightness boundaries, BGR bytes, frame size, and every trailing clock byte.\n\nThe hardware transport remains byte-transparent (it sends the ChannelData encoding without framing), so no duplicate framing path was introduced. This phase remains open only for its attached-board explicit-Bus::SPI API and APA102/SK9822 loopback/strip evidence after #3631.
zackees commentedon Jul 15, 2026
Final attached-board evidence after the automatic close: #3673 (merged at 073ac0e) extended #3672's public-API loopback to 257 LEDs / 1,068 bytes. On RP2040 Pico COM12 (2E8A:000A), GPIO11 SPI1 MOSI -> GPIO8 MISO and GPIO10 SCK: APA102 and SK9822 each passed black, RGB primaries, white, and walking-pixel frames at 8 MHz, byte-exact with PL022 wire idle. Command: �ash autoresearch rp2040 --rp-spi-public-api --rp-spi-chipset <apa102|sk9822> --tx-pin 11 --rx-pin 8 --upload-port COM12 --timeout 120s --skip-lint --no-auto-discover-pins --clean.