diff options
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/rgb_matrix.h | 2 | ||||
| -rw-r--r-- | quantum/rgb_matrix_drivers.c | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/quantum/rgb_matrix.h b/quantum/rgb_matrix.h index a615b8422..741a2fe44 100644 --- a/quantum/rgb_matrix.h +++ b/quantum/rgb_matrix.h | |||
| @@ -33,6 +33,8 @@ | |||
| 33 | # include "is31fl3737.h" | 33 | # include "is31fl3737.h" |
| 34 | #elif defined(IS31FL3741) | 34 | #elif defined(IS31FL3741) |
| 35 | # include "is31fl3741.h" | 35 | # include "is31fl3741.h" |
| 36 | #elif defined(AW20216) | ||
| 37 | # include "aw20216.h" | ||
| 36 | #elif defined(WS2812) | 38 | #elif defined(WS2812) |
| 37 | # include "ws2812.h" | 39 | # include "ws2812.h" |
| 38 | #endif | 40 | #endif |
diff --git a/quantum/rgb_matrix_drivers.c b/quantum/rgb_matrix_drivers.c index 896fa6d0e..6a11d4791 100644 --- a/quantum/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix_drivers.c | |||
| @@ -171,6 +171,22 @@ const rgb_matrix_driver_t rgb_matrix_driver = { | |||
| 171 | }; | 171 | }; |
| 172 | # endif | 172 | # endif |
| 173 | 173 | ||
| 174 | #elif defined(AW20216) | ||
| 175 | # include "spi_master.h" | ||
| 176 | static void init(void) { | ||
| 177 | spi_init(); | ||
| 178 | AW20216_init(); | ||
| 179 | } | ||
| 180 | |||
| 181 | static void flush(void) { AW20216_update_pwm_buffers(); } | ||
| 182 | |||
| 183 | const rgb_matrix_driver_t rgb_matrix_driver = { | ||
| 184 | .init = init, | ||
| 185 | .flush = flush, | ||
| 186 | .set_color = AW20216_set_color, | ||
| 187 | .set_color_all = AW20216_set_color_all, | ||
| 188 | }; | ||
| 189 | |||
| 174 | #elif defined(WS2812) | 190 | #elif defined(WS2812) |
| 175 | # if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_CUSTOM_DRIVER) | 191 | # if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_CUSTOM_DRIVER) |
| 176 | # pragma message "Cannot use RGBLIGHT and RGB Matrix using WS2812 at the same time." | 192 | # pragma message "Cannot use RGBLIGHT and RGB Matrix using WS2812 at the same time." |
