diff options
author | Jack Humbert <jack.humb@gmail.com> | 2018-06-22 21:26:30 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-06-22 21:26:30 -0400 |
commit | 6380f8319057d33bb6d07c66789867e49c634504 (patch) | |
tree | e469a238792c60c3016e4f8fd4226497451da9e6 /quantum/rgb_matrix.c | |
parent | 76e0d23887b8ddc70e9afb30bb7b91e9fec96c35 (diff) | |
download | qmk_firmware-6380f8319057d33bb6d07c66789867e49c634504.tar.gz qmk_firmware-6380f8319057d33bb6d07c66789867e49c634504.zip |
refactor, non-working
Diffstat (limited to 'quantum/rgb_matrix.c')
-rw-r--r-- | quantum/rgb_matrix.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index d71283f7c..874573bb2 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c | |||
@@ -102,13 +102,8 @@ void map_row_column_to_led( uint8_t row, uint8_t column, uint8_t *led_i, uint8_t | |||
102 | } | 102 | } |
103 | 103 | ||
104 | void rgb_matrix_update_pwm_buffers(void) { | 104 | void rgb_matrix_update_pwm_buffers(void) { |
105 | uint8_t ret = IS31FL3731_update_pwm_buffers( DRIVER_ADDR_1, DRIVER_ADDR_2 ); | 105 | IS31FL3731_update_pwm_buffers( DRIVER_ADDR_1, DRIVER_ADDR_2 ); |
106 | ret |= IS31FL3731_update_led_control_registers( DRIVER_ADDR_1, DRIVER_ADDR_2 ); | 106 | IS31FL3731_update_led_control_registers( DRIVER_ADDR_1, DRIVER_ADDR_2 ); |
107 | if (ret == 2) { | ||
108 | wait_ms(1000); | ||
109 | i2c_stop(); | ||
110 | rgb_matrix_setup_drivers(); | ||
111 | } | ||
112 | } | 107 | } |
113 | 108 | ||
114 | void rgb_matrix_set_color( int index, uint8_t red, uint8_t green, uint8_t blue ) { | 109 | void rgb_matrix_set_color( int index, uint8_t red, uint8_t green, uint8_t blue ) { |