From 06264abbfa1d0cd5067ba4fa08f2c4a8f95fad62 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 8 Feb 2023 16:24:48 +0800 Subject: [PATCH] lotus: Move LED to the middle of wide keys Currently QMK can only react to one LED per key. This looks wrong on wide keys with multiple LEDs. Only a proble on animations that react to keypresses. Signed-off-by: Daniel Schaefer --- keyboards/lotus/ansi/ansi.c | 6 +++--- keyboards/lotus/led.py | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/keyboards/lotus/ansi/ansi.c b/keyboards/lotus/ansi/ansi.c index 07d01e9933..829aa5ac4e 100644 --- a/keyboards/lotus/ansi/ansi.c +++ b/keyboards/lotus/ansi/ansi.c @@ -295,11 +295,11 @@ const is31_led g_is31_leds[RGB_MATRIX_LED_COUNT] = { led_config_t g_led_config = { { // Key Matrix to LED Index - { 31, 72, 5, 84, NO_LED, 29, 33, 77, 75, 80, 78, NO_LED, 88, 79, 52, NO_LED, }, - {NO_LED, NO_LED, NO_LED, 47, 94, 27, 35, 76, 81, 32, NO_LED, NO_LED, 34, 90, 53, 67, }, + { 31, 72, 5, 84, NO_LED, 29, 33, 77, 75, 82, 78, NO_LED, 88, 79, 52, NO_LED, }, + {NO_LED, NO_LED, NO_LED, 47, 96, 27, 35, 76, 81, 30, NO_LED, NO_LED, 34, 90, 53, 67, }, {NO_LED, NO_LED, 93, NO_LED, 2, 19, 39, 40, 55, NO_LED, 26, NO_LED, NO_LED, 63, NO_LED, 91, }, {NO_LED, 46, 1, NO_LED, 20, 21, 7, 8, 59, NO_LED, 24, 74, NO_LED, NO_LED, NO_LED, 70, }, - {NO_LED, NO_LED, 16, NO_LED, 44, 41, 9, 14, 68, NO_LED, 22, NO_LED, NO_LED, 61, 62, NO_LED, }, + {NO_LED, NO_LED, 16, NO_LED, 38, 41, 9, 14, 68, NO_LED, 22, NO_LED, NO_LED, 61, 62, NO_LED, }, {NO_LED, NO_LED, 15, NO_LED, 12, 13, 11, 10, 69, NO_LED, 17, NO_LED, NO_LED, 60, 64, NO_LED, }, {NO_LED, NO_LED, NO_LED, NO_LED, 18, 3, 4, 6, 66, NO_LED, 58, 89, NO_LED, 57, 54, NO_LED, }, {NO_LED, NO_LED, 36, NO_LED, NO_LED, 25, 43, 49, 51, NO_LED, 50, NO_LED, NO_LED, 48, 37, NO_LED, }, diff --git a/keyboards/lotus/led.py b/keyboards/lotus/led.py index 8fb439d8d0..8d8864b90a 100755 --- a/keyboards/lotus/led.py +++ b/keyboards/lotus/led.py @@ -95,8 +95,8 @@ ansi = [ { "id": "56", "x":1115, "y": 292, "matrix": (8,2) }, # Forth row - { "id": "45", "x":94, "y": 374, "matrix": (4,4) }, # Caps - { "id": "39", "x":123, "y": 367 }, # Caps + { "id": "45", "x":94, "y": 374 }, # Caps + { "id": "39", "x":123, "y": 367, "matrix": (4,4) }, # Caps { "id": "43", "x":150, "y": 374 }, # Caps { "id": "37", "x":227, "y": 365, "matrix": (2,7) }, # Each 75 apart in x @@ -115,8 +115,8 @@ ansi = [ { "id": "57", "x":1131, "y": 373 }, # Enter # Fifth row - { "id": "33", "x":91, "y": 448, "matrix": (9,1) }, # Shift - { "id": "31", "x":113, "y": 448 }, # Shift + { "id": "33", "x":91, "y": 448 }, # Shift + { "id": "31", "x":113, "y": 448, "matrix": (9,1) }, # Shift { "id": "29", "x":191, "y": 440 }, # Shift { "id": "28", "x":266, "y": 440, "matrix": (5,1) }, # Each 75 apart in x @@ -130,8 +130,8 @@ ansi = [ { "id": "76", "x":866, "y": 440, "matrix": (8,0) }, { "id": "80", "x":941, "y": 440, "matrix": (13,0) }, - { "id": "81", "x":1013, "y": 445, "matrix": (9,0) }, # Shift - { "id": "83", "x":1041, "y": 445 }, # Shift + { "id": "81", "x":1013, "y": 445 }, # Shift + { "id": "83", "x":1041, "y": 445, "matrix": (9,0) }, # Shift { "id": "84", "x":1106, "y": 445 }, # Shift { "id": "93", "x":1127, "y": 445 }, # Shift @@ -141,9 +141,9 @@ ansi = [ { "id": "94", "x":191, "y": 515, "matrix": (2,2) }, { "id": "47", "x":266, "y": 515, "matrix": (1,3) }, { "id": "48", "x":341, "y": 515, "matrix": (3,1) }, - { "id": "95", "x":415, "y": 522, "matrix": (4,1) }, # Space + { "id": "95", "x":415, "y": 522 }, # Space { "id": "96", "x":475, "y": 522 }, # Space - { "id": "97", "x":535, "y": 522 }, # Space + { "id": "97", "x":535, "y": 522, "matrix": (4,1) }, # Space { "id": "86", "x":595, "y": 522 }, # Space { "id": "87", "x":655, "y": 522 }, # Space { "id": "88", "x":715, "y": 522 }, # Space