forked from mirror/qmk_firmware
RGB Matrix: driver naming cleanups (#21594)
This commit is contained in:
@@ -188,7 +188,7 @@ led_config_t g_led_config = { {
|
||||
|
||||
static void init(void) {
|
||||
i2c_init();
|
||||
IS31FL3741_init(DRIVER_ADDR_1);
|
||||
is31fl3741_init(DRIVER_ADDR_1);
|
||||
for (int index = 0; index < ISSI_DRIVER_TOTAL; index++) {
|
||||
bool enabled = !( ( index == -1+0+13) || //A13
|
||||
( index == -1+13+3) || //B3
|
||||
@@ -221,19 +221,19 @@ static void init(void) {
|
||||
( index == -1+104+12) || //I12
|
||||
( index == -1+104+13) //I13
|
||||
);
|
||||
IS31FL3741_set_led_control_register(index, enabled, enabled, enabled);
|
||||
is31fl3741_set_led_control_register(index, enabled, enabled, enabled);
|
||||
}
|
||||
IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0);
|
||||
is31fl3741_update_led_control_registers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
static void flush(void) {
|
||||
IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
|
||||
is31fl3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
const rgb_matrix_driver_t rgb_matrix_driver = {
|
||||
.init = init,
|
||||
.flush = flush,
|
||||
.set_color = IS31FL3741_set_color,
|
||||
.set_color_all = IS31FL3741_set_color_all
|
||||
.set_color = is31fl3741_set_color,
|
||||
.set_color_all = is31fl3741_set_color_all
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -194,7 +194,7 @@ led_config_t g_led_config = { {
|
||||
|
||||
static void init(void) {
|
||||
i2c_init();
|
||||
IS31FL3741_init(DRIVER_ADDR_1);
|
||||
is31fl3741_init(DRIVER_ADDR_1);
|
||||
for (int index = 0; index < ISSI_DRIVER_TOTAL; index++) {
|
||||
bool enabled = !( ( index == -1+0+13) || //A13
|
||||
( index == -1+13+3) || //B3
|
||||
@@ -227,20 +227,20 @@ static void init(void) {
|
||||
( index == -1+104+12) || //I12
|
||||
( index == -1+104+13) //I13
|
||||
);
|
||||
IS31FL3741_set_led_control_register(index, enabled, enabled, enabled);
|
||||
is31fl3741_set_led_control_register(index, enabled, enabled, enabled);
|
||||
}
|
||||
IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0);
|
||||
is31fl3741_update_led_control_registers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
static void flush(void) {
|
||||
IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
|
||||
is31fl3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
const rgb_matrix_driver_t rgb_matrix_driver = {
|
||||
.init = init,
|
||||
.flush = flush,
|
||||
.set_color = IS31FL3741_set_color,
|
||||
.set_color_all = IS31FL3741_set_color_all
|
||||
.set_color = is31fl3741_set_color,
|
||||
.set_color_all = is31fl3741_set_color_all
|
||||
};
|
||||
|
||||
#ifdef VIA_ENABLE
|
||||
|
||||
Reference in New Issue
Block a user