diff options
| author | Jack Sangdahl <jack@pngu.org> | 2025-09-09 03:04:40 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-09 10:04:40 +0100 |
| commit | 177ff71d0c727632ff30e2d0bc066b9214177096 (patch) | |
| tree | 99beb7b657151a507fd93cf3e9d2e834aa1b498d /keyboards/hadron | |
| parent | c1b428bb4e4d2ecf4b904c8e4886d8e8e37602c7 (diff) | |
Migrate `g_led_config` to DD (H) (#25599)
Diffstat (limited to 'keyboards/hadron')
| -rw-r--r-- | keyboards/hadron/ver3/keyboard.json | 14 | ||||
| -rw-r--r-- | keyboards/hadron/ver3/ver3.c | 18 |
2 files changed, 13 insertions, 19 deletions
diff --git a/keyboards/hadron/ver3/keyboard.json b/keyboards/hadron/ver3/keyboard.json index f3e4bba06f..525b15df80 100644 --- a/keyboards/hadron/ver3/keyboard.json +++ b/keyboards/hadron/ver3/keyboard.json | |||
| @@ -3,7 +3,19 @@ | |||
| 3 | "device_version": "0.0.3" | 3 | "device_version": "0.0.3" |
| 4 | }, | 4 | }, |
| 5 | "rgb_matrix": { | 5 | "rgb_matrix": { |
| 6 | "driver": "ws2812" | 6 | "driver": "ws2812", |
| 7 | "layout": [ | ||
| 8 | {"matrix": [1, 13], "x": 195, "y": 3, "flags": 4}, | ||
| 9 | {"matrix": [4, 13], "x": 195, "y": 16, "flags": 4}, | ||
| 10 | {"matrix": [4, 10], "x": 150, "y": 16, "flags": 4}, | ||
| 11 | {"matrix": [4, 7], "x": 105, "y": 16, "flags": 4}, | ||
| 12 | {"matrix": [4, 4], "x": 60, "y": 16, "flags": 4}, | ||
| 13 | {"matrix": [4, 1], "x": 15, "y": 16, "flags": 4}, | ||
| 14 | {"matrix": [1, 1], "x": 15, "y": 3, "flags": 4}, | ||
| 15 | {"matrix": [1, 4], "x": 60, "y": 3, "flags": 4}, | ||
| 16 | {"matrix": [1, 7], "x": 105, "y": 3, "flags": 4}, | ||
| 17 | {"matrix": [1, 10], "x": 150, "y": 3, "flags": 4} | ||
| 18 | ] | ||
| 7 | }, | 19 | }, |
| 8 | "matrix_pins": { | 20 | "matrix_pins": { |
| 9 | "cols": ["B8", "B2", "B10", "A0", "A1", "A2", "B0", "A3", "B1", "A6", "A7", "B12", "C13", "B11", "B9"], | 21 | "cols": ["B8", "B2", "B10", "A0", "A1", "A2", "B0", "A3", "B1", "A6", "A7", "B12", "C13", "B11", "B9"], |
diff --git a/keyboards/hadron/ver3/ver3.c b/keyboards/hadron/ver3/ver3.c index d337fd9681..212aa15725 100644 --- a/keyboards/hadron/ver3/ver3.c +++ b/keyboards/hadron/ver3/ver3.c | |||
| @@ -15,24 +15,6 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #include "quantum.h" | 16 | #include "quantum.h" |
| 17 | 17 | ||
| 18 | |||
| 19 | #ifdef RGB_MATRIX_ENABLE | ||
| 20 | #include "rgb_matrix.h" | ||
| 21 | |||
| 22 | led_config_t g_led_config = { { | ||
| 23 | { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, | ||
| 24 | { NO_LED, 6, NO_LED, NO_LED, 7, NO_LED, NO_LED, 8, NO_LED, NO_LED, 9, NO_LED, NO_LED, 0, NO_LED }, | ||
| 25 | { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, | ||
| 26 | { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }, | ||
| 27 | { NO_LED, 5, NO_LED, NO_LED, 4, NO_LED, NO_LED, 3, NO_LED, NO_LED, 2, NO_LED, NO_LED, 1, NO_LED } | ||
| 28 | }, { | ||
| 29 | { 195, 3 }, { 195, 16 }, { 150, 16 }, { 105, 16 }, { 60, 16 }, { 15, 16 }, { 15, 3 }, { 60, 3 }, { 105, 3 }, { 150, 3 } | ||
| 30 | }, { | ||
| 31 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 | ||
| 32 | } }; | ||
| 33 | |||
| 34 | #endif | ||
| 35 | |||
| 36 | #ifdef OLED_ENABLE | 18 | #ifdef OLED_ENABLE |
| 37 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } | 19 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
| 38 | 20 | ||
