dotstar: Initial support for "dotstar" LEDs

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-08-06 19:30:48 -04:00
parent c2a08962b7
commit 4c09d8bf02
5 changed files with 98 additions and 18 deletions

View File

@@ -191,17 +191,17 @@ The following command is available when an "output_pin" config section
is enabled:
- `SET_PIN PIN=config_name VALUE=<value>`
## Neopixel Commands
## Neopixel and Dotstar Commands
The following command is available when a "neopixel" config section
is enabled:
- `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.
The following command is available when "neopixel" or "dotstar" config
sections are enabled:
- `SET_LED LED=<config_name> INDEX=<index> RED=<value> GREEN=<value>
BLUE=<value>`: This sets the LED output. Each color <value> must be
between 0.0 and 1.0. 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 to the
provided color.
## Servo Commands