diff options
author | cmdremily <68452184+cmdremily@users.noreply.github.com> | 2020-09-12 22:32:28 +0200 |
---|---|---|
committer | cmdremily <68452184+cmdremily@users.noreply.github.com> | 2020-09-23 14:15:25 +0200 |
commit | 8711dda0d31cae8719ca5fa20729cc877e1dee3c (patch) | |
tree | 151af9115ba540a64b4037771a672a406ad252b8 /quantum | |
parent | 8b9617f93dce6fdf1b4e003da3e120f9c6853d23 (diff) | |
download | qmk_firmware-8711dda0d31cae8719ca5fa20729cc877e1dee3c.tar.gz |
Allow the use of a single IS31FL3731 LED driver
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/rgb_matrix_drivers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/rgb_matrix_drivers.c b/quantum/rgb_matrix_drivers.c index 0403d6c96..8f670f9a3 100644 --- a/quantum/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix_drivers.c @@ -31,7 +31,9 @@ static void init(void) { i2c_init(); # ifdef IS31FL3731 IS31FL3731_init(DRIVER_ADDR_1); +# ifdef DRIVER_ADDR_2 IS31FL3731_init(DRIVER_ADDR_2); +# endif # elif defined(IS31FL3733) IS31FL3733_init(DRIVER_ADDR_1, 0); # elif defined(IS31FL3737) @@ -55,7 +57,9 @@ static void init(void) { // This actually updates the LED drivers # ifdef IS31FL3731 IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0); +# ifdef DRIVER_ADDR_2 IS31FL3731_update_led_control_registers(DRIVER_ADDR_2, 1); +# endif # elif defined(IS31FL3733) IS31FL3733_update_led_control_registers(DRIVER_ADDR_1, 0); IS31FL3733_update_led_control_registers(DRIVER_ADDR_2, 1); @@ -69,7 +73,9 @@ static void init(void) { # ifdef IS31FL3731 static void flush(void) { IS31FL3731_update_pwm_buffers(DRIVER_ADDR_1, 0); +# ifdef DRIVER_ADDR_2 IS31FL3731_update_pwm_buffers(DRIVER_ADDR_2, 1); +# endif } const rgb_matrix_driver_t rgb_matrix_driver = { |