mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 12:54:26 +02:00
Updated Rgb48Color object API (markdown)
@@ -143,3 +143,7 @@ The index operator allows accessing the R, G, and B properties using an index.
|
|||||||
```
|
```
|
||||||
uint16_t green = color[1];
|
uint16_t green = color[1];
|
||||||
```
|
```
|
||||||
|
You can also use the color index constants.
|
||||||
|
```
|
||||||
|
uint16_t green = color[ColorIndexG];
|
||||||
|
```
|
Reference in New Issue
Block a user