mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-11 14:44:26 +02:00
Updated RgbColor object API (markdown)
@@ -7,6 +7,18 @@ uint8_t R;
|
|||||||
uint8_t G;
|
uint8_t G;
|
||||||
uint8_t B;
|
uint8_t B;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
There are also a few constant properties that are helpful to use. These are..
|
||||||
|
#### Max
|
||||||
|
The highest value for a single color element.
|
||||||
|
```
|
||||||
|
const static uint16_t Max = 255;
|
||||||
|
```
|
||||||
|
#### Count
|
||||||
|
The number of color elements. Useful when accessing the elements using the [] operators.
|
||||||
|
```
|
||||||
|
const static size_t Count = 3;
|
||||||
|
```
|
||||||
## Constructors
|
## Constructors
|
||||||
|
|
||||||
### RgbColor(uint8_t r, uint8_t g, uint8_t b) :
|
### RgbColor(uint8_t r, uint8_t g, uint8_t b) :
|
||||||
|
Reference in New Issue
Block a user