1
0
Fork 0

RGB Matrix: driver naming cleanups (#21594)

This commit is contained in:
Ryan 2023-08-23 10:00:03 +10:00 committed by GitHub
parent dfb6d38f08
commit 37bc949945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
513 changed files with 1166 additions and 1170 deletions

View file

@ -9,7 +9,7 @@
"device_version": "0.0.1"
},
"rgb_matrix": {
"driver": "IS31FL3741"
"driver": "is31fl3741"
},
"matrix_pins": {
"cols": ["B0", "B1", "B2", "B3", "D2", "D5", "D4", "D6", "D7", "B4", "B5", "B6", "C6", "C7", "F7"],

View file

@ -121,21 +121,21 @@ const is31_led g_is31_indicator_leds[3] = {
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)) {
if (led_state.caps_lock) {
IS31FL3741_set_pwm_buffer(&g_is31_indicator_leds[2], 0xff, 0x00, 0x00);
is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[2], 0xff, 0x00, 0x00);
} else {
IS31FL3741_set_pwm_buffer(&g_is31_indicator_leds[2], 0x00, 0x00, 0x00);
is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[2], 0x00, 0x00, 0x00);
}
if (led_state.num_lock) {
IS31FL3741_set_pwm_buffer(&g_is31_indicator_leds[1], 0x00, 0xff, 0x00);
is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[1], 0x00, 0xff, 0x00);
} else {
IS31FL3741_set_pwm_buffer(&g_is31_indicator_leds[1], 0x00, 0x00, 0x00);
is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[1], 0x00, 0x00, 0x00);
}
if (led_state.scroll_lock) {
IS31FL3741_set_pwm_buffer(&g_is31_indicator_leds[0], 0x00, 0x00, 0xff);
is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[0], 0x00, 0x00, 0xff);
} else {
IS31FL3741_set_pwm_buffer(&g_is31_indicator_leds[0], 0x00, 0x00, 0x00);
is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[0], 0x00, 0x00, 0x00);
}
}
return true;
@ -144,10 +144,10 @@ bool led_update_kb(led_t led_state) {
void matrix_init_kb(void) {
for (int i = 0; i < DRIVER_INDICATOR_LED_TOTAL; ++i) {
is31_led led = g_is31_indicator_leds[i];
IS31FL3741_set_scaling_registers(&led, 0xFF, 0xFF, 0xFF);
is31fl3741_set_scaling_registers(&led, 0xFF, 0xFF, 0xFF);
}
IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0);
is31fl3741_update_led_control_registers(DRIVER_ADDR_1, 0);
matrix_init_user();
}