neopixel: Add support for daisy-chained chips

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-07-17 19:58:37 -04:00
parent abf3fa4b71
commit 46041f5411
3 changed files with 20 additions and 5 deletions

View File

@@ -195,9 +195,13 @@ is enabled:
The following command is available when a "neopixel" config section
is enabled:
- `SET_NEOPIXEL NEOPIXEL=<config_name> RED=<value> GREEN=<value>
BLUE=<value>`: This sets the neopixel LED output. Each <value> must
be between 0.0 and 1.0.
- `SET_NEOPIXEL NEOPIXEL=<config_name> INDEX=<index> RED=<value>
GREEN=<value> BLUE=<value>`: This sets the Neopixel LED output. Each
color <value> must be between 0.0 and 1.0. If multiple Neopixel
chips are daisy-chained then one may specify INDEX to alter the
color of just the given Neopixel chip (1 for the first Neopixel, 2
for the second, etc.). If INDEX is not provided then all Neopixels
in the daisy-chain will be set to the provided color.
## Servo Commands