Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] 0xc_pad LED index correction #17120

Merged
merged 1 commit into from
May 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions keyboards/s_ol/0xc_pad/0xc_pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@
#include "0xc_pad.h"

#ifdef RGB_MATRIX_ENABLE
# define Q(...) __VA_ARGS__

led_config_t g_led_config = {
led_config_t g_led_config = { {
// indices
LAYOUT(0, 6, 1, 5, 7, 2, 4, 8, 11, 3, 9, 10),
{ 0, 6, KC_NO, KC_NO },
{ 1, 5, 7, KC_NO },
{ 2, 4, 8, 11 },
{ KC_NO, 3, 9, 10 }
}, {
// phys position
LED_LAYOUT(Q({96, 110}), Q({128, 110}), Q({80, 83}), Q({112, 83}), Q({144, 83}), Q({64, 55}), Q({96, 55}), Q({128, 55}), Q({160, 55}), Q({80, 28}), Q({112, 28}), Q({144, 28})),
{ 96, 110}, { 80, 83}, { 64, 55}, { 80, 28},
{ 96, 55}, {112, 83}, {128, 110}, {144, 83},
{128, 55}, {112, 28}, {144, 28}, {160, 55}
}, {
// flags
LED_LAYOUT(4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4),
};
# undef Q
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
} };
#endif