Skip to content

feat: add WS2814 RGBW chipset support - #3770

Merged
zackees merged 1 commit into
masterfrom
feat/ws2814
Jul 30, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/ws2814

Conversation

@zackees

@zackees zackees commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Closes #3769

Summary

  • add first-class WS2814<DATA_PIN, RGB_ORDER> support with the datasheet-backed 320/320/640 ns timing and 300 us reset
  • lock WS2814 to its R,G,B,W wire format; deliberate setRgbw(), setRgbww(), and clearWhiteChannel() calls emit FL_WARN_F and are ignored
  • preserve RGBW encoding across channel, stub, and generic blocking backends, with generic conversion completed before the timing-critical frame
  • add AutoResearch WS2814 coverage, C6 RMT binding, byte-count validation, isolated R/G/B/W visual patterns, and fbuild serial-daemon recovery

The issue's original custom-RGBW override criterion is intentionally superseded by the maintainer decision in this thread: WS2814 owns a fixed R,G,B,W format and explicit reconfiguration is unsupported with a warning.

Validation

  • bash lint
  • bash test --cpp --force: 355/356 passed; the unrelated fl_task_executor wall-clock bound missed by 4 ms, then passed under required --debug sanitizer rerun and a subsequent quick rerun
  • focused WS2814 timing, generic fallback waveform, channel validation, and Python AutoResearch tests pass (112 Python tests)
  • hardware: bash autoresearch esp32c6 --rmt --legacy --chipset ws2814 --strip-sizes 1,2,3,4 --upload-port COM9 --timeout 120s
    • ESP32-C6FH4 rev 0.1, USB VID:PID 303A:1001, serial 8C:BF:EA:CF:87:B4
    • GPIO0 TX to GPIO1 RX external loopback; RMT reported as the bound driver
    • strip sizes 1, 2, 3, and 4 each passed 8/8 tests
    • physical WS2814 strip visibly confirmed isolated red, green, blue, and white output

Summary by CodeRabbit

  • New Features

    • Added WS2814 RGBW LED chipset support, including timing, fixed RGBW output behavior, and legacy testing support.
    • Added WS2814 support to AutoResearch configuration, validation, diagnostics, and visual test patterns.
    • Added improved RGBW error reporting and byte-count verification.
  • Bug Fixes

    • Improved serial test recovery when the background service disconnects.
    • Corrected RMT loopback handling when transmit and receive pins change.
  • Documentation

    • Expanded WS2814 wiring, power, level-shifting, timing, and usage guidance.
    • Clarified RMT loopback jumper requirements and chipset support details.
  • Tests

    • Added coverage for WS2814 behavior, validation, loopback, and service recovery.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 30, 2026
@zackees
zackees merged commit 5dd05da into master Jul 30, 2026
8 of 13 checks passed
@zackees
zackees deleted the feat/ws2814 branch July 30, 2026 02:41
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 30, 2026
@coderabbitai

coderabbitai Bot commented Jul 30, 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 Plus

Run ID: ba3e71ff-6a32-4947-867b-888c23f7e452

📥 Commits

Reviewing files that changed from the base of the PR and between 5345d6a and 97c9e69.

📒 Files selected for processing (26)
  • README.md
  • agents/docs/hardware-autoresearch.md
  • ci/autoresearch/args.py
  • ci/autoresearch/phases.py
  • ci/tests/test_autoresearch_phases.py
  • ci/tests/test_serial_interface_reset.py
  • ci/util/serial_interface.py
  • examples/AutoResearch/AutoResearch.ino
  • examples/AutoResearch/AutoResearchRemoteRunSingleTest.cpp
  • examples/AutoResearch/AutoResearchTest.cpp
  • examples/AutoResearch/AutoResearchTest.h
  • examples/AutoResearch/LegacyClocklessProxy.h
  • keywords.txt
  • pyproject.toml
  • src/FastLED.h
  • src/chipsets.h
  • src/fl/channels/cled_controller.h
  • src/fl/channels/validation.h
  • src/fl/chipsets/led_timing.h
  • src/platforms/esp/32/drivers/rmt_rx/rmt_rx_5/rmt_rx_channel_5.cpp.hpp
  • src/platforms/esp/clockless.h
  • src/platforms/shared/clockless_blocking.h
  • src/platforms/stub/clockless_channel_stub.h
  • src/platforms/stub/clockless_stub_generic.h
  • tests/fl/channels/validation.cpp
  • tests/fl/chipsets/timing_traits.cpp

📝 Walkthrough

Walkthrough

This change adds first-class WS2814 RGBW support, including timing, encoding, public APIs, AutoResearch validation, RMT loopback handling, tests, and documentation. It also adds fbuild daemon reconnection recovery for serial connections and updates the pinned fbuild version.

Changes

WS2814 RGBW support

Layer / File(s) Summary
WS2814 controller and RGBW encoding
src/chipsets/led_timing.h, src/chipsets.h, src/FastLED.h, src/fl/channels/*, src/platforms/shared/*, tests/fl/chipsets/*
Adds WS2814 timing, automatic fixed RGBW output, encoded four-byte frames, and chipset coverage.
Legacy AutoResearch WS2814 path
ci/autoresearch/*, examples/AutoResearch/LegacyClocklessProxy.h, examples/AutoResearch/AutoResearchRemoteRunSingleTest.cpp, ci/tests/test_autoresearch_phases.py
Adds WS2814 CLI validation, legacy template dispatch, synthesized build defines, RPC fields, response validation, and tests.
RGBW capture and RMT loopback validation
examples/AutoResearch/AutoResearchTest.*, src/fl/channels/validation.h, src/platforms/esp/**, tests/fl/channels/validation.cpp
Adds RGBW capture comparisons, same-pin RMT loopback selection, expanded error reporting, and platform validation.
WS2814 documentation and metadata
README.md, agents/docs/hardware-autoresearch.md, keywords.txt
Documents timing, RGBW behavior, wiring, DIN2 semantics, AutoResearch usage, and keyword highlighting.

fbuild daemon recovery

Layer / File(s) Summary
Serial monitor recovery
ci/util/serial_interface.py, ci/tests/test_serial_interface_reset.py, pyproject.toml
Restarts and reconnects the fbuild daemon after daemon-specific connection loss, preserves unrelated failures and interrupts, and updates fbuild to 2.5.4.

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

Sequence Diagram(s)

sequenceDiagram
  participant CLI
  participant AutoResearchPhases
  participant LegacyClocklessProxy
  participant RemoteRun
  participant RMT
  CLI->>AutoResearchPhases: select WS2814 legacy mode
  AutoResearchPhases->>LegacyClocklessProxy: instantiate WS2814 template
  AutoResearchPhases->>RemoteRun: send timing and legacy chipset data
  RemoteRun->>RMT: transmit and capture RGBW frames
  RMT-->>RemoteRun: return patterns and byte counts
Loading

Possibly related PRs

✨ 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/ws2814

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: add first-class WS2814 RGBW chipset support

1 participant