mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-11 06:34:26 +02:00
Updated RgbwColor object API (markdown)
@@ -124,3 +124,7 @@ The index operator allows accessing the R, G, B, and W properties using an index
|
|||||||
```
|
```
|
||||||
uint8_t white = color[3];
|
uint8_t white = color[3];
|
||||||
```
|
```
|
||||||
|
You can also use the color index constants.
|
||||||
|
```
|
||||||
|
uint16_t white = color[ColorIndexW];
|
||||||
|
```
|
Reference in New Issue
Block a user