Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
296552e358
5 changed files with 59 additions and 4 deletions
|
@ -37,6 +37,7 @@
|
|||
|
||||
#define WS2812_BYTE_ORDER_RGB 0
|
||||
#define WS2812_BYTE_ORDER_GRB 1
|
||||
#define WS2812_BYTE_ORDER_BGR 2
|
||||
|
||||
#ifndef WS2812_BYTE_ORDER
|
||||
# define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_GRB
|
||||
|
@ -51,6 +52,10 @@ typedef struct PACKED {
|
|||
uint8_t r;
|
||||
uint8_t g;
|
||||
uint8_t b;
|
||||
#elif (WS2812_BYTE_ORDER == WS2812_BYTE_ORDER_BGR)
|
||||
uint8_t b;
|
||||
uint8_t g;
|
||||
uint8_t r;
|
||||
#endif
|
||||
} cRGB;
|
||||
|
||||
|
@ -66,6 +71,10 @@ typedef struct PACKED {
|
|||
uint8_t r;
|
||||
uint8_t g;
|
||||
uint8_t b;
|
||||
#elif (WS2812_BYTE_ORDER == WS2812_BYTE_ORDER_BGR)
|
||||
uint8_t b;
|
||||
uint8_t g;
|
||||
uint8_t r;
|
||||
#endif
|
||||
uint8_t w;
|
||||
} cRGBW;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue