summaryrefslogtreecommitdiff
path: root/keyboards/melgeek/mach80/rev2
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-08-23 10:00:03 +1000
committerGitHub <noreply@github.com>2023-08-23 01:00:03 +0100
commit37bc9499453f95e4e835faa751dbfffff9bfd644 (patch)
treedf976fa0c137564ace2a48caca69ea58e2ba6468 /keyboards/melgeek/mach80/rev2
parentdfb6d38f08b3912baffbca23e351dd0ad836238c (diff)
RGB Matrix: driver naming cleanups (#21594)
Diffstat (limited to 'keyboards/melgeek/mach80/rev2')
-rw-r--r--keyboards/melgeek/mach80/rev2/info.json2
-rwxr-xr-xkeyboards/melgeek/mach80/rev2/rev2.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/keyboards/melgeek/mach80/rev2/info.json b/keyboards/melgeek/mach80/rev2/info.json
index 3a1a27847d..1d7d87b76f 100644
--- a/keyboards/melgeek/mach80/rev2/info.json
+++ b/keyboards/melgeek/mach80/rev2/info.json
@@ -1,6 +1,6 @@
{
"rgb_matrix": {
- "driver": "IS31FL3741"
+ "driver": "is31fl3741"
},
"matrix_pins": {
"cols": ["B0", "B1", "B2", "B3", "D2", "D5", "D4", "D6", "D7", "B4", "B5", "B6", "C6", "C7", "F7", "D3"],
diff --git a/keyboards/melgeek/mach80/rev2/rev2.c b/keyboards/melgeek/mach80/rev2/rev2.c
index 7e578c78b5..632466376d 100755
--- a/keyboards/melgeek/mach80/rev2/rev2.c
+++ b/keyboards/melgeek/mach80/rev2/rev2.c
@@ -151,21 +151,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], 0x00, 0x00, 0xff);
+ is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[2], 0x00, 0x00, 0xff);
} 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], 0xff, 0x00, 0x00);
+ is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[1], 0xff, 0x00, 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, 0xff, 0x00);
+ is31fl3741_set_pwm_buffer(&g_is31_indicator_leds[0], 0x00, 0xff, 0x00);
} 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;
@@ -174,10 +174,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();
}