diff options
author | Ryan <[email protected]> | 2024-07-19 08:13:49 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-19 08:13:49 +1000 |
commit | 7b4e806c25f791ffec0c5f336164d33dccab21b8 (patch) | |
tree | c930c09f9edfedca8ee942ca9feffd81f13764d7 /keyboards/input_club/ergodox_infinity | |
parent | 8b46500a74fa85e06249c2bd74125e0d534320ee (diff) | |
download | qmk_firmware-7b4e806c25f791ffec0c5f336164d33dccab21b8.tar.gz qmk_firmware-7b4e806c25f791ffec0c5f336164d33dccab21b8.zip |
Move LED Matrix LED config to data driven (#24122)
Diffstat (limited to 'keyboards/input_club/ergodox_infinity')
-rw-r--r-- | keyboards/input_club/ergodox_infinity/ergodox_infinity.c | 66 | ||||
-rw-r--r-- | keyboards/input_club/ergodox_infinity/keyboard.json | 78 |
2 files changed, 78 insertions, 66 deletions
diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c index 7660a41f56..2e8d0b9763 100644 --- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c @@ -209,72 +209,6 @@ const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = { // 71 70 69 { 0, C3_7 }, { 0, C2_7 }, { 0, C1_7 }, }; - -led_config_t g_led_config = { - { - // Key Matrix to LED Index - // Left half - { NO_LED, NO_LED, NO_LED, 33, 34 }, - { NO_LED, NO_LED, NO_LED, 32, 37 }, - { 6, 13, NO_LED, 26, 36 }, - { 5, 12, 19, 25, 35 }, - { 4, 11, 18, 24, 31 }, - { 3, 10, 17, 23, 30 }, - { 2, 9, 16, 22, 29 }, - { 1, 8, 15, 21, 28 }, - { 0, 7, 14, 20, 27 }, - // Right half - { NO_LED, NO_LED, NO_LED, 71, 72 }, - { NO_LED, NO_LED, NO_LED, 70, 75 }, - { 44, 51, NO_LED, 64, 74 }, - { 43, 50, 57, 63, 73 }, - { 42, 49, 56, 62, 69 }, - { 41, 48, 55, 61, 68 }, - { 40, 47, 54, 60, 67 }, - { 39, 46, 53, 59, 66 }, - { 38, 45, 52, 58, 65 }, - }, { - // LED Index to Physical Position (assumes a reasonable gap between halves) - // Left half - { 0, 3 }, { 15, 3 }, { 27, 1 }, { 39, 0 }, { 51, 1 }, { 63, 2 }, { 75, 2 }, - { 0, 13 }, { 15, 13 }, { 27, 11 }, { 39, 10 }, { 51, 11 }, { 63, 12 }, { 78, 17 }, - { 0, 23 }, { 15, 23 }, { 27, 21 }, { 39, 20 }, { 51, 21 }, { 63, 22 }, - { 0, 33 }, { 15, 33 }, { 27, 31 }, { 39, 30 }, { 51, 31 }, { 63, 32 }, { 78, 32 }, - { 4, 43 }, { 15, 43 }, { 27, 41 }, { 39, 40 }, { 51, 41 }, - { 89, 41 }, { 100, 46 }, - { 95, 55 }, - { 72, 54 }, { 83, 59 }, { 90, 64 }, - // Right half (mirrored) - { 224, 3 }, { 209, 3 }, { 197, 1 }, { 185, 0 }, { 173, 1 }, { 161, 2 }, { 149, 2 }, - { 224, 13 }, { 209, 13 }, { 197, 11 }, { 185, 10 }, { 173, 11 }, { 161, 12 }, { 146, 17 }, - { 224, 23 }, { 209, 23 }, { 197, 21 }, { 185, 20 }, { 173, 21 }, { 161, 22 }, - { 224, 33 }, { 209, 33 }, { 197, 31 }, { 185, 30 }, { 173, 31 }, { 161, 32 }, { 146, 32 }, - { 220, 43 }, { 209, 43 }, { 197, 41 }, { 185, 40 }, { 173, 41 }, - { 135, 41 }, { 124, 46 }, - { 129, 55 }, - { 152, 54 }, { 141, 59 }, { 134, 64 }, - }, { - // LED Index to Flag - // Left half - 1, 4, 4, 4, 4, 4, 1, - 1, 4, 4, 4, 4, 4, 1, - 1, 4, 4, 4, 4, 4, - 1, 4, 4, 4, 4, 4, 1, - 1, 1, 1, 1, 1, - 1, 1, - 1, - 1, 1, 1, - // Right half (mirrored) - 1, 4, 4, 4, 4, 4, 1, - 1, 4, 4, 4, 4, 4, 1, - 1, 4, 4, 4, 4, 4, - 1, 4, 4, 4, 4, 4, 1, - 1, 1, 1, 1, 1, - 1, 1, - 1, - 1, 1, 1, - } -}; #endif #ifdef ST7565_ENABLE diff --git a/keyboards/input_club/ergodox_infinity/keyboard.json b/keyboards/input_club/ergodox_infinity/keyboard.json index 75778c3288..b7667d192c 100644 --- a/keyboards/input_club/ergodox_infinity/keyboard.json +++ b/keyboards/input_club/ergodox_infinity/keyboard.json @@ -29,6 +29,84 @@ "wave_left_right": true, "wave_up_down": true }, + "layout": [ + {"matrix": [8, 0], "x": 0, "y": 3, "flags": 1}, + {"matrix": [7, 0], "x": 15, "y": 3, "flags": 4}, + {"matrix": [6, 0], "x": 27, "y": 1, "flags": 4}, + {"matrix": [5, 0], "x": 39, "y": 0, "flags": 4}, + {"matrix": [4, 0], "x": 51, "y": 1, "flags": 4}, + {"matrix": [3, 0], "x": 63, "y": 2, "flags": 4}, + {"matrix": [2, 0], "x": 75, "y": 2, "flags": 1}, + {"matrix": [8, 1], "x": 0, "y": 13, "flags": 1}, + {"matrix": [7, 1], "x": 15, "y": 13, "flags": 4}, + {"matrix": [6, 1], "x": 27, "y": 11, "flags": 4}, + {"matrix": [5, 1], "x": 39, "y": 10, "flags": 4}, + {"matrix": [4, 1], "x": 51, "y": 11, "flags": 4}, + {"matrix": [3, 1], "x": 63, "y": 12, "flags": 4}, + {"matrix": [2, 1], "x": 78, "y": 17, "flags": 1}, + {"matrix": [8, 2], "x": 0, "y": 23, "flags": 1}, + {"matrix": [7, 2], "x": 15, "y": 23, "flags": 4}, + {"matrix": [6, 2], "x": 27, "y": 21, "flags": 4}, + {"matrix": [5, 2], "x": 39, "y": 20, "flags": 4}, + {"matrix": [4, 2], "x": 51, "y": 21, "flags": 4}, + {"matrix": [3, 2], "x": 63, "y": 22, "flags": 4}, + {"matrix": [8, 3], "x": 0, "y": 33, "flags": 1}, + {"matrix": [7, 3], "x": 15, "y": 33, "flags": 4}, + {"matrix": [6, 3], "x": 27, "y": 31, "flags": 4}, + {"matrix": [5, 3], "x": 39, "y": 30, "flags": 4}, + {"matrix": [4, 3], "x": 51, "y": 31, "flags": 4}, + {"matrix": [3, 3], "x": 63, "y": 32, "flags": 4}, + {"matrix": [2, 3], "x": 78, "y": 32, "flags": 1}, + {"matrix": [8, 4], "x": 4, "y": 43, "flags": 1}, + {"matrix": [7, 4], "x": 15, "y": 43, "flags": 1}, + {"matrix": [6, 4], "x": 27, "y": 41, "flags": 1}, + {"matrix": [5, 4], "x": 39, "y": 40, "flags": 1}, + {"matrix": [4, 4], "x": 51, "y": 41, "flags": 1}, + {"matrix": [1, 3], "x": 89, "y": 41, "flags": 1}, + {"matrix": [0, 3], "x": 100, "y": 46, "flags": 1}, + {"matrix": [0, 4], "x": 95, "y": 55, "flags": 1}, + {"matrix": [3, 4], "x": 72, "y": 54, "flags": 1}, + {"matrix": [2, 4], "x": 83, "y": 59, "flags": 1}, + {"matrix": [1, 4], "x": 90, "y": 64, "flags": 1}, + {"matrix": [17, 0], "x": 224, "y": 3, "flags": 1}, + {"matrix": [16, 0], "x": 209, "y": 3, "flags": 4}, + {"matrix": [15, 0], "x": 197, "y": 1, "flags": 4}, + {"matrix": [14, 0], "x": 185, "y": 0, "flags": 4}, + {"matrix": [13, 0], "x": 173, "y": 1, "flags": 4}, + {"matrix": [12, 0], "x": 161, "y": 2, "flags": 4}, + {"matrix": [11, 0], "x": 149, "y": 2, "flags": 1}, + {"matrix": [17, 1], "x": 224, "y": 13, "flags": 1}, + {"matrix": [16, 1], "x": 209, "y": 13, "flags": 4}, + {"matrix": [15, 1], "x": 197, "y": 11, "flags": 4}, + {"matrix": [14, 1], "x": 185, "y": 10, "flags": 4}, + {"matrix": [13, 1], "x": 173, "y": 11, "flags": 4}, + {"matrix": [12, 1], "x": 161, "y": 12, "flags": 4}, + {"matrix": [11, 1], "x": 146, "y": 17, "flags": 1}, + {"matrix": [17, 2], "x": 224, "y": 23, "flags": 1}, + {"matrix": [16, 2], "x": 209, "y": 23, "flags": 4}, + {"matrix": [15, 2], "x": 197, "y": 21, "flags": 4}, + {"matrix": [14, 2], "x": 185, "y": 20, "flags": 4}, + {"matrix": [13, 2], "x": 173, "y": 21, "flags": 4}, + {"matrix": [12, 2], "x": 161, "y": 22, "flags": 4}, + {"matrix": [17, 3], "x": 224, "y": 33, "flags": 1}, + {"matrix": [16, 3], "x": 209, "y": 33, "flags": 4}, + {"matrix": [15, 3], "x": 197, "y": 31, "flags": 4}, + {"matrix": [14, 3], "x": 185, "y": 30, "flags": 4}, + {"matrix": [13, 3], "x": 173, "y": 31, "flags": 4}, + {"matrix": [12, 3], "x": 161, "y": 32, "flags": 4}, + {"matrix": [11, 3], "x": 146, "y": 32, "flags": 1}, + {"matrix": [17, 4], "x": 220, "y": 43, "flags": 1}, + {"matrix": [16, 4], "x": 209, "y": 43, "flags": 1}, + {"matrix": [15, 4], "x": 197, "y": 41, "flags": 1}, + {"matrix": [14, 4], "x": 185, "y": 40, "flags": 1}, + {"matrix": [13, 4], "x": 173, "y": 41, "flags": 1}, + {"matrix": [10, 3], "x": 135, "y": 41, "flags": 1}, + {"matrix": [9, 3], "x": 124, "y": 46, "flags": 1}, + {"matrix": [9, 4], "x": 129, "y": 55, "flags": 1}, + {"matrix": [12, 4], "x": 152, "y": 54, "flags": 1}, + {"matrix": [11, 4], "x": 141, "y": 59, "flags": 1}, + {"matrix": [10, 4], "x": 134, "y": 64, "flags": 1} + ], "driver": "is31fl3731", "sleep": true, "split_count": [38, 38] |