diff options
author | skullY <skullydazed@gmail.com> | 2019-01-23 15:43:48 -0800 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-02-10 15:37:12 -0800 |
commit | fd698c43d78ebbc42c1eb2bec74078b791616ad1 (patch) | |
tree | f55a2cd8a3af7052d9244e5ad96dd3fffa6fb5e0 /quantum/rgb_matrix.h | |
parent | aeafcc9fd3f41fce6506af5ccf9d9a1fe3b968d8 (diff) | |
download | qmk_firmware-fd698c43d78ebbc42c1eb2bec74078b791616ad1.tar.gz qmk_firmware-fd698c43d78ebbc42c1eb2bec74078b791616ad1.zip |
The beginning of a simple led matrix driver for is31fl3731
Diffstat (limited to 'quantum/rgb_matrix.h')
-rw-r--r-- | quantum/rgb_matrix.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/quantum/rgb_matrix.h b/quantum/rgb_matrix.h index e43532d11..b64ddec07 100644 --- a/quantum/rgb_matrix.h +++ b/quantum/rgb_matrix.h | |||
@@ -50,25 +50,17 @@ typedef struct rgb_led { | |||
50 | 50 | ||
51 | extern const rgb_led g_rgb_leds[DRIVER_LED_TOTAL]; | 51 | extern const rgb_led g_rgb_leds[DRIVER_LED_TOTAL]; |
52 | 52 | ||
53 | typedef struct | ||
54 | { | ||
55 | HSV color; | ||
56 | uint8_t index; | ||
57 | } rgb_indicator; | ||
58 | |||
59 | typedef union { | 53 | typedef union { |
60 | uint32_t raw; | 54 | uint32_t raw; |
61 | struct { | 55 | struct { |
62 | bool enable :1; | 56 | bool enable :1; |
63 | uint8_t mode :6; | 57 | uint8_t mode :6; |
64 | uint16_t hue :9; | ||
65 | uint8_t sat :8; | ||
66 | uint8_t val :8; | 58 | uint8_t val :8; |
67 | uint8_t speed :8;//EECONFIG needs to be increased to support this | 59 | uint8_t speed :8;//EECONFIG needs to be increased to support this |
68 | }; | 60 | }; |
69 | } rgb_config_t; | 61 | } led_config_t; |
70 | 62 | ||
71 | enum rgb_matrix_effects { | 63 | enum _matrix_effects { |
72 | RGB_MATRIX_SOLID_COLOR = 1, | 64 | RGB_MATRIX_SOLID_COLOR = 1, |
73 | #ifndef DISABLE_RGB_MATRIX_ALPHAS_MODS | 65 | #ifndef DISABLE_RGB_MATRIX_ALPHAS_MODS |
74 | RGB_MATRIX_ALPHAS_MODS, | 66 | RGB_MATRIX_ALPHAS_MODS, |