diff options
author | Ryan <fauxpark@gmail.com> | 2024-01-01 12:40:35 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-01 12:40:35 +1100 |
commit | e1c0bd8a7c8d86ca573b430d5a914cf649c8d9b2 (patch) | |
tree | b433888c667a12fab56be926a620e902ec22343a /quantum/rgb_matrix | |
parent | 709d07aebc38e6edd4e0f41d80792a7230c5180f (diff) | |
download | qmk_firmware-e1c0bd8a7c8d86ca573b430d5a914cf649c8d9b2.tar.gz qmk_firmware-e1c0bd8a7c8d86ca573b430d5a914cf649c8d9b2.zip |
LED drivers: extract IS31FL3742A from IS31COMMON (#22620)
Diffstat (limited to 'quantum/rgb_matrix')
-rw-r--r-- | quantum/rgb_matrix/rgb_matrix_drivers.c | 8 | ||||
-rw-r--r-- | quantum/rgb_matrix/rgb_matrix_drivers.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.c b/quantum/rgb_matrix/rgb_matrix_drivers.c index ef12434aa2..79f82a0c87 100644 --- a/quantum/rgb_matrix/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix/rgb_matrix_drivers.c @@ -76,6 +76,14 @@ const rgb_matrix_driver_t rgb_matrix_driver = { .set_color_all = is31fl3741_set_color_all, }; +#elif defined(RGB_MATRIX_IS31FL3742A) +const rgb_matrix_driver_t rgb_matrix_driver = { + .init = is31fl3742a_init_drivers, + .flush = is31fl3742a_flush, + .set_color = is31fl3742a_set_color, + .set_color_all = is31fl3742a_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 991344f087..298167e6ed 100644 --- a/quantum/rgb_matrix/rgb_matrix_drivers.h +++ b/quantum/rgb_matrix/rgb_matrix_drivers.h @@ -19,6 +19,8 @@ # include "is31fl3737.h" #elif defined(RGB_MATRIX_IS31FL3741) # include "is31fl3741.h" +#elif defined(RGB_MATRIX_IS31FL3742A) +# include "is31fl3742a.h" #elif defined(IS31FLCOMMON) # include "is31flcommon.h" #elif defined(RGB_MATRIX_SNLED27351) |