diff options
author | Ryan <fauxpark@gmail.com> | 2024-01-01 17:04:51 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-01 17:04:51 +1100 |
commit | ae2d5e2e5a170fa49e25b324c63e8650e6c872f9 (patch) | |
tree | 02d48af5d0659e6dbe73032c4411068e04b6dd5f /quantum | |
parent | 0ea32032050962cae1852cf75620185254c199a5 (diff) |
LED drivers: extract IS31FL3743A from IS31COMMON (#22635)
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 26179dfa4e..d7b7c2b077 100644 --- a/quantum/led_matrix/led_matrix_drivers.c +++ b/quantum/led_matrix/led_matrix_drivers.c @@ -81,6 +81,14 @@ const led_matrix_driver_t led_matrix_driver = { .set_value_all = is31fl3742a_set_value_all, }; +#elif defined(LED_MATRIX_IS31FL3743A) +const led_matrix_driver_t led_matrix_driver = { + .init = is31fl3743a_init_drivers, + .flush = is31fl3743a_flush, + .set_value = is31fl3743a_set_value, + .set_value_all = is31fl3743a_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 88ceebc04b..dc52dd460d 100644 --- a/quantum/led_matrix/led_matrix_drivers.h +++ b/quantum/led_matrix/led_matrix_drivers.h @@ -19,6 +19,8 @@ # include "is31fl3741-simple.h" #elif defined(LED_MATRIX_IS31FL3742A) # include "is31fl3742a-simple.h" +#elif defined(LED_MATRIX_IS31FL3743A) +# include "is31fl3743a-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 79f82a0c87..5631c25964 100644 --- a/quantum/rgb_matrix/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix/rgb_matrix_drivers.c @@ -84,6 +84,14 @@ const rgb_matrix_driver_t rgb_matrix_driver = { .set_color_all = is31fl3742a_set_color_all, }; +#elif defined(RGB_MATRIX_IS31FL3743A) +const rgb_matrix_driver_t rgb_matrix_driver = { + .init = is31fl3743a_init_drivers, + .flush = is31fl3743a_flush, + .set_color = is31fl3743a_set_color, + .set_color_all = is31fl3743a_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 298167e6ed..90fde67bdc 100644 --- a/quantum/rgb_matrix/rgb_matrix_drivers.h +++ b/quantum/rgb_matrix/rgb_matrix_drivers.h @@ -21,6 +21,8 @@ # include "is31fl3741.h" #elif defined(RGB_MATRIX_IS31FL3742A) # include "is31fl3742a.h" +#elif defined(RGB_MATRIX_IS31FL3743A) +# include "is31fl3743a.h" #elif defined(IS31FLCOMMON) # include "is31flcommon.h" #elif defined(RGB_MATRIX_SNLED27351) |