summaryrefslogtreecommitdiff
path: root/keyboards/mechlovin
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-11-11 12:15:19 +1100
committerGitHub <noreply@github.com>2022-11-11 12:15:19 +1100
commit20ed138236a88c8b1fc3924f4b883618f6e01920 (patch)
treee69701853d2e16e8154d00f85f076541111b262a /keyboards/mechlovin
parentdad5262425c311b3e14cf886a29c312e3edf7dd4 (diff)
LED config fixes (#18973)
Diffstat (limited to 'keyboards/mechlovin')
-rw-r--r--keyboards/mechlovin/hannah60rgb/rev2/rev2.c78
1 files changed, 46 insertions, 32 deletions
diff --git a/keyboards/mechlovin/hannah60rgb/rev2/rev2.c b/keyboards/mechlovin/hannah60rgb/rev2/rev2.c
index a2812aa41d..e8b1c89f32 100644
--- a/keyboards/mechlovin/hannah60rgb/rev2/rev2.c
+++ b/keyboards/mechlovin/hannah60rgb/rev2/rev2.c
@@ -110,39 +110,53 @@ const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
{0, C9_16, C9_11, C7_12},//INDICATOR LED-77
};
-led_config_t g_led_config = { {
- // Key Matrix to LED Index
- {0, 1, 2, 3, 18, 19, 20, 21, 36, 37, 38, 39, 40, 41},
- {4, 5, 6, 7, 22, 23, 24, 25, 43, 44, 45, 46, 47, 69},
- {8, 9, 10, 11, 26, 27, 28, 29, 50, 51, 52, 53, 54, 55},
- {13, 14, 15, 30, 31, 32, 33, 56, 57, 58, 59, 60, 62, 63},
- {16, 17, 34, NO_LED, NO_LED, NO_LED, 35, NO_LED, NO_LED, NO_LED, 65, 66, 67, 68},
- },
+led_config_t g_led_config = {
{
- //LED Index to Physical Positon
- { 0, 0}, { 16, 0}, { 32, 0 }, { 48, 0}, //9-59-68-76
- { 0, 16}, { 16, 16}, { 32, 16}, { 48, 16}, //10-60-72-77
- { 0, 32}, { 16, 32}, { 32, 32}, { 48, 32}, //46-61-73-78
- { 0, 48}, { 0, 48}, { 12, 48}, { 16, 48}, //126-51-63-74
- { 0, 64}, { 16, 64}, //56-67
- { 64, 0}, { 80, 0}, { 96, 0}, { 112, 0}, //80-84-89-94
- { 64, 16}, { 80, 16}, { 96,16}, { 112,16}, //81-85-90-95
- { 64, 32}, { 80, 32}, { 96,32}, { 112,32}, //82-86-91-96
- { 32, 48}, { 48, 48}, { 64,48}, { 80,48}, //79-83-87-92
- { 32, 64}, { 80, 64}, //75-93
- { 128, 0}, { 144, 0}, { 160, 0}, { 176, 0}, {192, 0}, {220, 0}, {210, 0}, //98-102-106-111-116-121-130
- { 128,16}, {144,16}, {160,16}, {176, 16}, {192, 16}, {220, 16}, {220,16}, //99-103-107-112-117-129-122
- { 128,32}, { 144,32}, { 160,32}, { 176,32}, {192, 32}, {220, 32}, //100-104-108-113-118-123
- { 96,48}, {112,48}, {128, 48}, {144, 48}, {160, 48}, {200, 48}, {220,48}, {220,48}, //97-101-105-109-114-119-128-124
- { 96,64}, {144,64}, {160,64}, {176,64}, {220, 64}, //127-110-115-120-125
- { 220, 0}, //140
-}, {
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-} };
+ // Key Matrix to LED Index
+ { 0, 1, 2, 3, 18, 19, 20, 21, 36, 37, 38, 39, 40, 41 },
+ { 4, 5, 6, 7, 22, 23, 24, 25, 43, 44, 45, 46, 47, 69 },
+ { 8, 9, 10, 11, 26, 27, 28, 29, 50, 51, 52, 53, 54, 55 },
+ { 13, 14, 15, 30, 31, 32, 33, 56, 57, 58, 59, 60, 62, 63 },
+ { 16, 17, 34, NO_LED, NO_LED, NO_LED, 35, NO_LED, NO_LED, NO_LED, 65, 66, 67, 68 }
+ }, {
+ //LED Index to Physical Positon
+ { 0, 0 }, { 16, 0 }, { 32, 0 }, { 48, 0 }, //9-59-68-76
+ { 0, 16 }, { 16, 16 }, { 32, 16 }, { 48, 16 }, //10-60-72-77
+ { 0, 32 }, { 16, 32 }, { 32, 32 }, { 48, 32 }, //46-61-73-78
+ { 0, 48 }, { 0, 48 }, { 12, 48 }, { 16, 48 }, //126-51-63-74
+ { 0, 64 }, { 16, 64 }, //56-67
+ { 64, 0 }, { 80, 0 }, { 96, 0 }, { 112, 0 }, //80-84-89-94
+ { 64, 16 }, { 80, 16 }, { 96, 16 }, { 112, 16 }, //81-85-90-95
+ { 64, 32 }, { 80, 32 }, { 96, 32 }, { 112, 32 }, //82-86-91-96
+ { 32, 48 }, { 48, 48 }, { 64, 48 }, { 80, 48 }, //79-83-87-92
+ { 32, 64 }, { 80, 64 }, //75-93
+ { 128, 0 }, { 144, 0 }, { 160, 0 }, { 176, 0 }, { 192, 0 }, { 220, 0 }, { 210, 0 }, //98-102-106-111-116-121-130
+ { 128, 16 }, { 144, 16 }, { 160, 16 }, { 176, 16 }, { 192, 16 }, { 220, 16 }, { 220, 16 }, //99-103-107-112-117-129-122
+ { 128, 32 }, { 144, 32 }, { 160, 32 }, { 176, 32 }, { 192, 32 }, { 220, 32 }, //100-104-108-113-118-123
+ { 96, 48 }, { 112, 48 }, { 128, 48 }, { 144, 48 }, { 160, 48 }, { 200, 48 }, { 220, 48 }, { 220, 48 }, //97-101-105-109-114-119-128-124
+ { 96, 64 }, { 144, 64 }, { 160, 64 }, { 176, 64 }, { 220, 64 }, //127-110-115-120-125
+ { 220, 0 }, //140
+ { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }
+ }, {
+ 1, 1, 1, 1,
+ 1, 1, 1, 1,
+ 1, 1, 1, 1,
+ 1, 1, 1, 1,
+ 1, 1,
+ 1, 1, 1, 1,
+ 1, 1, 1, 1,
+ 1, 1, 1, 1,
+ 1, 1, 1, 1,
+ 1, 1,
+ 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1,
+ 1,
+ 9, 9, 9, 9, 9, 9, 9, 9
+ }
+};
bool rgb_matrix_indicators_kb(void) {
if (!rgb_matrix_indicators_user()) {