added rgb_order configuration
This commit is contained in:
@@ -51,6 +51,9 @@ The component exposes an RGB light and supports all
|
||||
|
||||
- **chipset** (*Optional*, string): `APA102` or `WS2801`. Defaults to `APA102`.
|
||||
- **num_leds** (*Optional*, int): Number of LEDs in the strip. Defaults to `1`.
|
||||
- **rgb_order** (*Optional*, string): The order in which the color bytes of each LED are sent.
|
||||
One of `RGB`, `RBG`, `GRB`, `GBR`, `BGR`, `BRG`. Defaults to `BGR` for `APA102` and `RGB` for `WS2801`.
|
||||
Change this if the colors on your strip come out swapped.
|
||||
- **data_rate** (*Optional*): SPI clock frequency. Defaults to `1MHz`.
|
||||
- **spi_id** (*Optional*, ID): The SPI bus to use, if more than one is configured.
|
||||
- All other options from [Light](https://esphome.io/components/light/#config-light).
|
||||
@@ -69,6 +72,7 @@ light:
|
||||
name: "WS2801 Strip"
|
||||
chipset: WS2801
|
||||
num_leds: 32
|
||||
rgb_order: RGB
|
||||
data_rate: 1MHz
|
||||
effects:
|
||||
- addressable_rainbow:
|
||||
|
||||
Reference in New Issue
Block a user