diff options
| author | Jack Sangdahl <jack@pngu.org> | 2025-09-09 03:08:42 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-09 10:08:42 +0100 |
| commit | ff1900190c166d28f8d903ea7bf723658780d192 (patch) | |
| tree | 0df8bca5cdc1290d36d378d11d2b119521c800aa /keyboards/omkbd | |
| parent | 2818085d3fffb645e1835326104534ee94b03fdb (diff) | |
Migrate `g_led_config` to DD (NO) (#25621)
Diffstat (limited to 'keyboards/omkbd')
| -rw-r--r-- | keyboards/omkbd/runner3680/5x6_5x8/5x6_5x8.c | 52 | ||||
| -rw-r--r-- | keyboards/omkbd/runner3680/5x6_5x8/keyboard.json | 72 |
2 files changed, 72 insertions, 52 deletions
diff --git a/keyboards/omkbd/runner3680/5x6_5x8/5x6_5x8.c b/keyboards/omkbd/runner3680/5x6_5x8/5x6_5x8.c deleted file mode 100644 index 3fda310364..0000000000 --- a/keyboards/omkbd/runner3680/5x6_5x8/5x6_5x8.c +++ /dev/null | |||
| @@ -1,52 +0,0 @@ | |||
| 1 | /* Copyright 2021 omkbd | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "quantum.h" | ||
| 18 | |||
| 19 | #ifdef RGB_MATRIX_ENABLE | ||
| 20 | led_config_t g_led_config = { { | ||
| 21 | // Key Matrix to LED Index | ||
| 22 | { NO_LED, NO_LED, 5, 4, 3, 2, 1, 0 }, | ||
| 23 | { NO_LED, NO_LED, 6, 7, 8, 9, 10, 11 }, | ||
| 24 | { NO_LED, NO_LED, 17, 16, 15, 14, 13, 12 }, | ||
| 25 | { NO_LED, NO_LED, 18, 19, 20, 21, 22, 23 }, | ||
| 26 | { NO_LED, NO_LED, 29, 28, 27, 26, 25, 24 }, | ||
| 27 | { 37, 36, 35, 34, 33, 32, 31, 30 }, | ||
| 28 | { 38, 39, 40, 41, 42, 43, 44, 45 }, | ||
| 29 | { 53, 52, 51, 50, 49, 48, 47, 46 }, | ||
| 30 | { 54, 55, 56, 57, 58, 59, 60, 61 }, | ||
| 31 | { 69, 68, 67, 66, 65, 64, 63, 62 } | ||
| 32 | }, { | ||
| 33 | // LED Index to Physical Position | ||
| 34 | { 86, 0 }, { 69, 0 }, { 52, 0 }, { 34, 0 }, { 17, 0 }, { 0, 0 }, | ||
| 35 | { 0, 16 }, { 17, 16 }, { 34, 16 }, { 52, 16 }, { 69, 16 }, { 86, 16 }, | ||
| 36 | { 86, 32 }, { 69, 32 }, { 52, 32 }, { 34, 32 }, { 17, 32 }, { 0, 32 }, | ||
| 37 | { 0, 48 }, { 17, 48 }, { 34, 48 }, { 52, 48 }, { 69, 48 }, { 86, 48 }, | ||
| 38 | { 86, 64 }, { 69, 64 }, { 52, 64 }, { 34, 64 }, { 17, 64 }, { 0, 64 }, | ||
| 39 | { 103, 0 }, { 121, 0 }, { 138, 0 }, { 155, 0 }, { 172, 0 }, { 190, 0 }, { 207, 0 }, { 224, 0 }, | ||
| 40 | { 224, 16 }, { 207, 16 }, { 190, 16 }, { 172, 16 }, { 155, 16 }, { 138, 16 }, { 121, 16 }, { 103, 16 }, | ||
| 41 | { 103, 32 }, { 121, 32 }, { 138, 32 }, { 155, 32 }, { 172, 32 }, { 190, 32 }, { 207, 32 }, { 224, 32 }, | ||
| 42 | { 224, 48 }, { 207, 48 }, { 190, 48 }, { 172, 48 }, { 155, 48 }, { 138, 48 }, { 121, 48 }, { 103, 48 }, | ||
| 43 | { 103, 64 }, { 121, 64 }, { 138, 64 }, { 155, 64 }, { 172, 64 }, { 190, 64 }, { 207, 64 }, { 224, 64 } | ||
| 44 | }, { | ||
| 45 | // LED Index to Flag | ||
| 46 | LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, | ||
| 47 | LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, | ||
| 48 | LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, | ||
| 49 | LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, | ||
| 50 | LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL | ||
| 51 | } }; | ||
| 52 | #endif | ||
diff --git a/keyboards/omkbd/runner3680/5x6_5x8/keyboard.json b/keyboards/omkbd/runner3680/5x6_5x8/keyboard.json index 2d912a1445..2033b0330d 100644 --- a/keyboards/omkbd/runner3680/5x6_5x8/keyboard.json +++ b/keyboards/omkbd/runner3680/5x6_5x8/keyboard.json | |||
| @@ -15,6 +15,78 @@ | |||
| 15 | }, | 15 | }, |
| 16 | "rgb_matrix": { | 16 | "rgb_matrix": { |
| 17 | "driver": "ws2812", | 17 | "driver": "ws2812", |
| 18 | "layout": [ | ||
| 19 | {"matrix": [0, 7], "x": 86, "y": 0, "flags": 255}, | ||
| 20 | {"matrix": [0, 6], "x": 69, "y": 0, "flags": 255}, | ||
| 21 | {"matrix": [0, 5], "x": 52, "y": 0, "flags": 255}, | ||
| 22 | {"matrix": [0, 4], "x": 34, "y": 0, "flags": 255}, | ||
| 23 | {"matrix": [0, 3], "x": 17, "y": 0, "flags": 255}, | ||
| 24 | {"matrix": [0, 2], "x": 0, "y": 0, "flags": 255}, | ||
| 25 | {"matrix": [1, 2], "x": 0, "y": 16, "flags": 255}, | ||
| 26 | {"matrix": [1, 3], "x": 17, "y": 16, "flags": 255}, | ||
| 27 | {"matrix": [1, 4], "x": 34, "y": 16, "flags": 255}, | ||
| 28 | {"matrix": [1, 5], "x": 52, "y": 16, "flags": 255}, | ||
| 29 | {"matrix": [1, 6], "x": 69, "y": 16, "flags": 255}, | ||
| 30 | {"matrix": [1, 7], "x": 86, "y": 16, "flags": 255}, | ||
| 31 | {"matrix": [2, 7], "x": 86, "y": 32, "flags": 255}, | ||
| 32 | {"matrix": [2, 6], "x": 69, "y": 32, "flags": 255}, | ||
| 33 | {"matrix": [2, 5], "x": 52, "y": 32, "flags": 255}, | ||
| 34 | {"matrix": [2, 4], "x": 34, "y": 32, "flags": 255}, | ||
| 35 | {"matrix": [2, 3], "x": 17, "y": 32, "flags": 255}, | ||
| 36 | {"matrix": [2, 2], "x": 0, "y": 32, "flags": 255}, | ||
| 37 | {"matrix": [3, 2], "x": 0, "y": 48, "flags": 255}, | ||
| 38 | {"matrix": [3, 3], "x": 17, "y": 48, "flags": 255}, | ||
| 39 | {"matrix": [3, 4], "x": 34, "y": 48, "flags": 255}, | ||
| 40 | {"matrix": [3, 5], "x": 52, "y": 48, "flags": 255}, | ||
| 41 | {"matrix": [3, 6], "x": 69, "y": 48, "flags": 255}, | ||
| 42 | {"matrix": [3, 7], "x": 86, "y": 48, "flags": 255}, | ||
| 43 | {"matrix": [4, 7], "x": 86, "y": 64, "flags": 255}, | ||
| 44 | {"matrix": [4, 6], "x": 69, "y": 64, "flags": 255}, | ||
| 45 | {"matrix": [4, 5], "x": 52, "y": 64, "flags": 255}, | ||
| 46 | {"matrix": [4, 4], "x": 34, "y": 64, "flags": 255}, | ||
| 47 | {"matrix": [4, 3], "x": 17, "y": 64, "flags": 255}, | ||
| 48 | {"matrix": [4, 2], "x": 0, "y": 64, "flags": 255}, | ||
| 49 | {"matrix": [5, 7], "x": 103, "y": 0, "flags": 255}, | ||
| 50 | {"matrix": [5, 6], "x": 121, "y": 0, "flags": 255}, | ||
| 51 | {"matrix": [5, 5], "x": 138, "y": 0, "flags": 255}, | ||
| 52 | {"matrix": [5, 4], "x": 155, "y": 0, "flags": 255}, | ||
| 53 | {"matrix": [5, 3], "x": 172, "y": 0, "flags": 255}, | ||
| 54 | {"matrix": [5, 2], "x": 190, "y": 0, "flags": 255}, | ||
| 55 | {"matrix": [5, 1], "x": 207, "y": 0, "flags": 255}, | ||
| 56 | {"matrix": [5, 0], "x": 224, "y": 0, "flags": 255}, | ||
| 57 | {"matrix": [6, 0], "x": 224, "y": 16, "flags": 255}, | ||
| 58 | {"matrix": [6, 1], "x": 207, "y": 16, "flags": 255}, | ||
| 59 | {"matrix": [6, 2], "x": 190, "y": 16, "flags": 255}, | ||
| 60 | {"matrix": [6, 3], "x": 172, "y": 16, "flags": 255}, | ||
| 61 | {"matrix": [6, 4], "x": 155, "y": 16, "flags": 255}, | ||
| 62 | {"matrix": [6, 5], "x": 138, "y": 16, "flags": 255}, | ||
| 63 | {"matrix": [6, 6], "x": 121, "y": 16, "flags": 255}, | ||
| 64 | {"matrix": [6, 7], "x": 103, "y": 16, "flags": 255}, | ||
| 65 | {"matrix": [7, 7], "x": 103, "y": 32, "flags": 255}, | ||
| 66 | {"matrix": [7, 6], "x": 121, "y": 32, "flags": 255}, | ||
| 67 | {"matrix": [7, 5], "x": 138, "y": 32, "flags": 255}, | ||
| 68 | {"matrix": [7, 4], "x": 155, "y": 32, "flags": 255}, | ||
| 69 | {"matrix": [7, 3], "x": 172, "y": 32, "flags": 255}, | ||
| 70 | {"matrix": [7, 2], "x": 190, "y": 32, "flags": 255}, | ||
| 71 | {"matrix": [7, 1], "x": 207, "y": 32, "flags": 255}, | ||
| 72 | {"matrix": [7, 0], "x": 224, "y": 32, "flags": 255}, | ||
| 73 | {"matrix": [8, 0], "x": 224, "y": 48, "flags": 255}, | ||
| 74 | {"matrix": [8, 1], "x": 207, "y": 48, "flags": 255}, | ||
| 75 | {"matrix": [8, 2], "x": 190, "y": 48, "flags": 255}, | ||
| 76 | {"matrix": [8, 3], "x": 172, "y": 48, "flags": 255}, | ||
| 77 | {"matrix": [8, 4], "x": 155, "y": 48, "flags": 255}, | ||
| 78 | {"matrix": [8, 5], "x": 138, "y": 48, "flags": 255}, | ||
| 79 | {"matrix": [8, 6], "x": 121, "y": 48, "flags": 255}, | ||
| 80 | {"matrix": [8, 7], "x": 103, "y": 48, "flags": 255}, | ||
| 81 | {"matrix": [9, 7], "x": 103, "y": 64, "flags": 255}, | ||
| 82 | {"matrix": [9, 6], "x": 121, "y": 64, "flags": 255}, | ||
| 83 | {"matrix": [9, 5], "x": 138, "y": 64, "flags": 255}, | ||
| 84 | {"matrix": [9, 4], "x": 155, "y": 64, "flags": 255}, | ||
| 85 | {"matrix": [9, 3], "x": 172, "y": 64, "flags": 255}, | ||
| 86 | {"matrix": [9, 2], "x": 190, "y": 64, "flags": 255}, | ||
| 87 | {"matrix": [9, 1], "x": 207, "y": 64, "flags": 255}, | ||
| 88 | {"matrix": [9, 0], "x": 224, "y": 64, "flags": 255} | ||
| 89 | ], | ||
| 18 | "split_count": [30, 40] | 90 | "split_count": [30, 40] |
| 19 | }, | 91 | }, |
| 20 | "matrix_pins": { | 92 | "matrix_pins": { |
