From aa970e85609e46f69ae14f09ec072fea8d165021 Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Tue, 17 May 2022 13:02:14 +0800 Subject: [PATCH 1/2] [Keyboard] mach3 LED index correction (#17110) --- keyboards/machkeyboards/mach3/mach3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboards/machkeyboards/mach3/mach3.c b/keyboards/machkeyboards/mach3/mach3.c index 9769d02a53..509aac9fe5 100644 --- a/keyboards/machkeyboards/mach3/mach3.c +++ b/keyboards/machkeyboards/mach3/mach3.c @@ -19,8 +19,8 @@ led_config_t g_led_config = { { // Key Matrix to LED Index { 0, 1, 2 }, - { 7, 6, 5 }, - { 8, 9, 10 }, + { 5, 4, 3 }, + { 6, 7, 8 }, }, { // LED Index to Physical Position { 0, 0 }, { 112, 0 }, { 224, 0 }, @@ -39,4 +39,4 @@ void keyboard_pre_init_kb(void) { writePinHigh(F5); keyboard_pre_init_user(); -} \ No newline at end of file +} From 8b9cb030a74ced2c50fe62e2fd259e16a93e33bf Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Tue, 17 May 2022 13:02:35 +0800 Subject: [PATCH 2/2] [Keyboard] Latinpad LED index correction (#17109) --- keyboards/latincompass/latinpad/latinpad.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/keyboards/latincompass/latinpad/latinpad.c b/keyboards/latincompass/latinpad/latinpad.c index 85f8eba7d5..51826bd6a0 100644 --- a/keyboards/latincompass/latinpad/latinpad.c +++ b/keyboards/latincompass/latinpad/latinpad.c @@ -16,25 +16,23 @@ #include "latinpad.h" #ifdef RGB_MATRIX_ENABLE - led_config_t g_led_config = { - { - { 1, 2, 3, 4 }, - { 5, 6, 7, 8 }, - { 9, 10, 11, 12 }, - { 13, 14, 15, 16 }, - { 17, 18, NO_LED, NO_LED } - },{ +led_config_t g_led_config = { { + { 0, 1, 2, 3 }, + { 4, 5, 6, 7 }, + { 8, 9, 10, 11 }, + { 12, 13, 14, 15 }, + { 16, 17, NO_LED, NO_LED } +},{ { 74, 21 }, { 37, 21 }, { 24, 21 }, { 18, 21 }, { 74, 10 }, { 37, 10 }, { 28, 10 }, { 18, 10 }, { 74, 7 }, { 37, 7 }, { 20, 7 }, { 18, 7 }, { 74, 5 }, { 37, 5 }, { 22, 5 }, { 18, 5 }, { 74, 5 }, { 37, 5 }, - },{ +},{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - } - }; +} }; #endif