neopixel: Add support for RGBW LEDs

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-10-08 20:06:59 -04:00
parent 2bb30265b5
commit 7263077db5
4 changed files with 36 additions and 17 deletions

View file

@ -6,6 +6,10 @@ All dates in this document are approximate.
# Changes
20201029: The neopixel `color_order_GRB` config option has been
removed. If necessary, update the config to set the new `color_order`
option to RGB, GRB, RGBW, or GRBW.
20201029: The serial option in the mcu config section no longer
defaults to /dev/ttyS0. In the rare situation where /dev/ttyS0 is the
desired serial port, it must be specified explicitly.

View file

@ -259,8 +259,9 @@ is enabled:
The following command is available when "neopixel" or "dotstar" config
sections are enabled:
- `SET_LED LED=<config_name> RED=<value> GREEN=<value> BLUE=<value>
[INDEX=<index>] [TRANSMIT=0]`: This sets the LED output. Each color
<value> must be between 0.0 and 1.0. If multiple LED chips are
WHITE=<value> [INDEX=<index>] [TRANSMIT=0]`: This sets the LED
output. Each color <value> must be between 0.0 and 1.0. The WHITE
option is only valid on RGBW LEDs. If multiple LED chips are
daisy-chained then one may specify INDEX to alter the color of just
the given chip (1 for the first chip, 2 for the second, etc.). If
INDEX is not provided then all LEDs in the daisy-chain will be set