diff options
author | Ryan <fauxpark@gmail.com> | 2024-01-01 19:31:44 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-01 19:31:44 +1100 |
commit | a88dd675bf3e1dedac2ceb7df779e0fb6931948a (patch) | |
tree | 1a6242f63cebd0b4c3e39a35594b05227eeded67 /quantum | |
parent | ae2d5e2e5a170fa49e25b324c63e8650e6c872f9 (diff) |
LED drivers: extract IS31FL3745 from IS31COMMON (#22636)
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/led_matrix/led_matrix_drivers.c | 8 | ||||
-rw-r--r-- | quantum/led_matrix/led_matrix_drivers.h | 2 | ||||
-rw-r--r-- | quantum/rgb_matrix/rgb_matrix_drivers.c | 8 | ||||
-rw-r--r-- | quantum/rgb_matrix/rgb_matrix_drivers.h | 2 |
4 files changed, 20 insertions, 0 deletions
diff --git a/quantum/led_matrix/led_matrix_drivers.c b/quantum/led_matrix/led_matrix_drivers.c index d7b7c2b077..f244ae30e9 100644 --- a/quantum/led_matrix/led_matrix_drivers.c +++ b/quantum/led_matrix/led_matrix_drivers.c @@ -89,6 +89,14 @@ const led_matrix_driver_t led_matrix_driver = { .set_value_all = is31fl3743a_set_value_all, }; +#elif defined(LED_MATRIX_IS31FL3745) +const led_matrix_driver_t led_matrix_driver = { + .init = is31fl3745_init_drivers, + .flush = is31fl3745_flush, + .set_value = is31fl3745_set_value, + .set_value_all = is31fl3745_set_value_all, +}; + #elif defined(IS31FLCOMMON) const led_matrix_driver_t led_matrix_driver = { .init = IS31FL_simple_init_drivers, diff --git a/quantum/led_matrix/led_matrix_drivers.h b/quantum/led_matrix/led_matrix_drivers.h index dc52dd460d..01821a83c4 100644 --- a/quantum/led_matrix/led_matrix_drivers.h +++ b/quantum/led_matrix/led_matrix_drivers.h @@ -21,6 +21,8 @@ # include "is31fl3742a-simple.h" #elif defined(LED_MATRIX_IS31FL3743A) # include "is31fl3743a-simple.h" +#elif defined(LED_MATRIX_IS31FL3745) +# include "is31fl3745-simple.h" #elif defined(IS31FLCOMMON) # include "is31flcommon.h" #elif defined(LED_MATRIX_SNLED27351) diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.c b/quantum/rgb_matrix/rgb_matrix_drivers.c index 5631c25964..0a41991efb 100644 --- a/quantum/rgb_matrix/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix/rgb_matrix_drivers.c @@ -92,6 +92,14 @@ const rgb_matrix_driver_t rgb_matrix_driver = { .set_color_all = is31fl3743a_set_color_all, }; +#elif defined(RGB_MATRIX_IS31FL3745) +const rgb_matrix_driver_t rgb_matrix_driver = { + .init = is31fl3745_init_drivers, + .flush = is31fl3745_flush, + .set_color = is31fl3745_set_color, + .set_color_all = is31fl3745_set_color_all, +}; + #elif defined(IS31FLCOMMON) const rgb_matrix_driver_t rgb_matrix_driver = { .init = IS31FL_RGB_init_drivers, diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.h b/quantum/rgb_matrix/rgb_matrix_drivers.h index 90fde67bdc..786f2fa37a 100644 --- a/quantum/rgb_matrix/rgb_matrix_drivers.h +++ b/quantum/rgb_matrix/rgb_matrix_drivers.h @@ -23,6 +23,8 @@ # include "is31fl3742a.h" #elif defined(RGB_MATRIX_IS31FL3743A) # include "is31fl3743a.h" +#elif defined(RGB_MATRIX_IS31FL3745) +# include "is31fl3745.h" #elif defined(IS31FLCOMMON) # include "is31flcommon.h" #elif defined(RGB_MATRIX_SNLED27351) |