Repository navigation
Description
Context
FastLED does not currently expose a WS2814 chipset type. Users can approximate
the protocol with WS2813 timing plus a manual .setRgbw() call, but this is
undocumented, does not automatically select four-channel output, and has no
WS2814-specific tests or hardware evidence.
The Worldsemi WS2814 V1.4 protocol specifies:
- 32 bits per pixel, MSB first, in
R,G,B,Worder T0H: 220?380 nsT1H: 580?1000 nsT0L: 580?1000 nsT1L: 580?1000 ns- bit period of at least 1.25 ?s
- reset low time of at least 280 ?s
DIN2as an auxiliary breakpoint-resume input, not a second controller output
The existing WS2813 waveform (T1=320, T2=320, T3=640, reset 300 ?s)
fits those ranges, but WS2814 should receive a dedicated semantic timing type so
it can be documented, tested, and adjusted independently.
Proposal
Public chipset API
Add first-class support for:
FastLED.addLeds<WS2814, DATA_PIN, RGB>(leds, NUM_LEDS);WS2814 must automatically enable FastLED's RGBW path with white in byte
position 3, producing the datasheet-defined R,G,B,W frame without requiring
.setRgbw().
A subsequent call must remain able to override the default conversion policy:
FastLED.addLeds<WS2814, DATA_PIN, RGB>(leds, NUM_LEDS)
.setRgbw(customRgbwConfig);Suggested implementation:
- Add a dedicated
fl::TIMING_WS2814in
src/fl/chipsets/led_timing.h, initially using320/320/640 nsand a
300 ?sreset. - Add
WS2814Controllerinsrc/chipsets.husing the normal generic
clockless-controller path. - Have its initialization enable
RgbwDefault::value(), following the
always-RGBW precedent used by UCS7604. - Add the public
WS2814template insrc/FastLED.h. - Do not add a new ESP32 engine: RMT, PARLIO, and other generic clockless
drivers should consume the new timing and existing RGBW encoder. - Do not expose
DIN2as another FastLED output pin. Document it as external
strip/module wiring.
Automated tests
Add focused WS2814 tests covering:
- Timing constants, derived high/low times, 1.28 ?s period, and 300 ?s reset.
WS2814initialization automatically enables RGBW withEOrderW::W3.- One CRGB pixel produces exactly four bytes in
R,G,B,Worder. - Primary red, green, and blue inputs produce a zero white byte.
- Neutral white exercises the default white extraction path.
- A caller-provided
.setRgbw(customConfig)overrides the automatic default. - Small strip sizes of 1?4 pixels serialize without padding errors or buffer
overruns. - Existing RGB chipsets remain three bytes per pixel.
AutoResearch and ESP32-C6 validation
Extend the existing AutoResearch chipset-selection path rather than adding a
one-off sketch:
- Add
ws2814to--chipset. - Add WS2814 to
LegacyClocklessChipsetso AutoResearch exercises the public
FastLED.addLeds<WS2814, PIN, RGB>()template path. - Derive RGBW expectations from the WS2814 type itself; the test must not pass
legacyRgbw=true, because automatic RGBW activation is part of the feature
being verified. - Extend RX decoding/expected-frame generation to verify 32-bit
R,G,B,W
frames and the WS2814 timing/reset bounds. - Keep output machine-readable through the existing
REMOTE:/RESULT:
reporting.
Hardware target: the attached ESP32-C6, using the RMT driver and RMT RX capture.
Expected closeout command:
fbuild port scan
bash autoresearch esp32c6 --rmt --legacy --chipset ws2814 \
--strip-sizes 1,2,3,4 --upload-port <confirmed-port> --timeout 120sSuggested bench wiring:
- Tap the ESP32-C6 TX signal to the AutoResearch RX GPIO for waveform/data
capture. - Feed the same TX signal through a suitable 3.3 V-to-5 V logic-level shifter
into WS2814DIN1. - Use a common ground and an external supply appropriate for the WS2814
strip/module. - Wire
DIN2according to the WS2814 strip/module datasheet; it is not driven
by another ESP32 GPIO. - Do not connect a 5 V WS2814
DOUTdirectly to an ESP32-C6 input.
The device test should display isolated red, green, blue, and white output while
AutoResearch independently verifies the transmitted frame and timing.
Documentation
- Add
WS2814tokeywords.txt. - Add it to the supported-chipset documentation/table.
- Document the default
RGBorder, automatic RGBW behavior, optional custom
.setRgbw()policy, level-shifting requirement, external power requirement,
andDIN2wiring semantics. - Reuse
examples/AutoResearch/; do not add a one-off.inoexample.
Acceptance criteria
-
FastLED.addLeds<WS2814, PIN, RGB>()compiles through the normal
clockless API on supported platforms. - The controller automatically enables four-byte RGBW output with white in
position 3. - A subsequent
.setRgbw(customConfig)overrides the default policy. - Unit tests prove the exact
R,G,B,Wbyte order and WS2814 timing/reset
configuration. - Small 1?4 pixel cases pass without memory or framing errors.
-
bash test --cpppasses. -
bash lintpasses. - The ESP32-C6 is identified with
fbuild port scan, including its exact
port in the closeout evidence. - The canonical
bash autoresearchcommand passes through the public
WS2814template API using ESP32-C6 RMT TX/RX capture. - Closeout evidence records the board, port, wiring, exact command, and
decisiveREMOTE:/RESULT:output. - A physical WS2814 strip/module is verified to display isolated red,
green, blue, and white correctly. - Documentation and Arduino keyword metadata are updated.
-
DIN2remains a documented hardware-wiring concern rather than a second
FastLED data-pin API.
Open questions
- The current
fbuild port scandoes not identify an ESP32-C6 by product name;
the implementation must confirm which attached Espressif port is the C6
before flashing. - Exact TX/RX GPIOs should be selected by the existing AutoResearch pin
discovery/configuration path and recorded with the hardware evidence.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jul 30, 2026
Implementation is in #3770. Per the maintainer decision made during implementation, WS2814 uses a fixed R,G,B,W wire format: deliberate
setRgbw(),setRgbww(), orclearWhiteChannel()calls warn viaFL_WARN_Fand are ignored, rather than allowing a custom white placement. ESP32-C6 RMT loopback passed for 1-4 LEDs (8/8 each), and the physical strip visibly produced isolated red, green, blue, and white.