summaryrefslogtreecommitdiffstats
path: root/quantum/rgb_matrix_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/rgb_matrix_types.h')
-rw-r--r--quantum/rgb_matrix_types.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/quantum/rgb_matrix_types.h b/quantum/rgb_matrix_types.h
index f7643d2b0..908e96da5 100644
--- a/quantum/rgb_matrix_types.h
+++ b/quantum/rgb_matrix_types.h
@@ -73,11 +73,18 @@ typedef struct PACKED {
uint8_t modifier:1;
} rgb_led;
+typedef enum {
+ RGB_ZONE_OFF = 0,
+ RGB_ZONE_ALL,
+ RGB_ZONE_KEYS,
+ RGB_ZONE_UNDER,
+} rgb_zone_t;
+
typedef union {
uint32_t raw;
struct PACKED {
- bool enable :1;
- uint8_t mode :7;
+ uint8_t enable :2;
+ uint8_t mode :6;
uint8_t hue :8;
uint8_t sat :8;
uint8_t val :8;