Skip to content

feat: add first-class WS2814 RGBW chipset support #3769

Closed

Description

@zackees

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,W order
  • T0H: 220?380 ns
  • T1H: 580?1000 ns
  • T0L: 580?1000 ns
  • T1L: 580?1000 ns
  • bit period of at least 1.25 ?s
  • reset low time of at least 280 ?s
  • DIN2 as 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.

Datasheet:
https://datasheet4u.com/pdf-down/W/S/2/WS2814-Worldsemi.pdf

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_WS2814 in
    src/fl/chipsets/led_timing.h, initially using 320/320/640 ns and a
    300 ?s reset.
  • Add WS2814Controller in src/chipsets.h using the normal generic
    clockless-controller path.
  • Have its initialization enable RgbwDefault::value(), following the
    always-RGBW precedent used by UCS7604.
  • Add the public WS2814 template in src/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 DIN2 as 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.
  • WS2814 initialization automatically enables RGBW with EOrderW::W3.
  • One CRGB pixel produces exactly four bytes in R,G,B,W order.
  • 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 ws2814 to --chipset.
  • Add WS2814 to LegacyClocklessChipset so 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 120s

Suggested 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 WS2814 DIN1.
  • Use a common ground and an external supply appropriate for the WS2814
    strip/module.
  • Wire DIN2 according to the WS2814 strip/module datasheet; it is not driven
    by another ESP32 GPIO.
  • Do not connect a 5 V WS2814 DOUT directly 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 WS2814 to keywords.txt.
  • Add it to the supported-chipset documentation/table.
  • Document the default RGB order, automatic RGBW behavior, optional custom
    .setRgbw() policy, level-shifting requirement, external power requirement,
    and DIN2 wiring semantics.
  • Reuse examples/AutoResearch/; do not add a one-off .ino example.

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,W byte order and WS2814 timing/reset
    configuration.
  • Small 1?4 pixel cases pass without memory or framing errors.
  • bash test --cpp passes.
  • bash lint passes.
  • The ESP32-C6 is identified with fbuild port scan, including its exact
    port in the closeout evidence.
  • The canonical bash autoresearch command passes through the public
    WS2814 template API using ESP32-C6 RMT TX/RX capture.
  • Closeout evidence records the board, port, wiring, exact command, and
    decisive REMOTE: / 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.
  • DIN2 remains a documented hardware-wiring concern rather than a second
    FastLED data-pin API.

Open questions

  • The current fbuild port scan does 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.

Activity

  1. added
    type: feature
    area: core
    on Jul 30, 2026
  2. zackees commented on Jul 30, 2026

    @zackees
    MemberAuthor

    Implementation is in #3770. Per the maintainer decision made during implementation, WS2814 uses a fixed R,G,B,W wire format: deliberate setRgbw(), setRgbww(), or clearWhiteChannel() calls warn via FL_WARN_F and 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.

  3. moved this from Triage to Done in FastLED Trackeron Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: corechipsetstype: feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions