add a new way to set color
This commit is contained in:
parent
691cf4ed62
commit
384c591384
1 changed files with 8 additions and 5 deletions
|
|
@ -31,11 +31,14 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef union {
|
||||||
uint8_t red;
|
struct {
|
||||||
uint8_t green;
|
uint8_t blue; //LSB
|
||||||
uint8_t blue;
|
uint8_t green;
|
||||||
uint8_t white;
|
uint8_t red;
|
||||||
|
uint8_t white;
|
||||||
|
};
|
||||||
|
uint32_t color; // 0xWWRRGGBB
|
||||||
} ws2812_pixel_t;
|
} ws2812_pixel_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue