diff options
author | QMK Bot <[email protected]> | 2021-01-15 21:43:07 +0000 |
---|---|---|
committer | QMK Bot <[email protected]> | 2021-01-15 21:43:07 +0000 |
commit | 296552e358b857efa40e87f45f3ff177a1f527a7 (patch) | |
tree | e00d93b5baa9b6099bd6194851d27b55ef683e03 /quantum/color.h | |
parent | bd2764cccc3986e71d182b2cf2ead5ef04f0da41 (diff) | |
parent | 3d70766327422bcd918b6940298f7557ab10d248 (diff) | |
download | qmk_firmware-296552e358b857efa40e87f45f3ff177a1f527a7.tar.gz qmk_firmware-296552e358b857efa40e87f45f3ff177a1f527a7.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum/color.h')
-rw-r--r-- | quantum/color.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/quantum/color.h b/quantum/color.h index 7448168b3a..4783f6839c 100644 --- a/quantum/color.h +++ b/quantum/color.h @@ -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; |