aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/idyllic
diff options
context:
space:
mode:
authorJack Sangdahl2025-09-09 11:18:16 +0200
committerGitHub2025-09-09 11:18:16 +0200
commit3934a7f3c8e153d020d84fc5823379d3af21cfe9 (patch)
treee239186ea51ef19a36e09b1583a758f5eb610acc /keyboards/idyllic
parented2de216031af9335433465e478d1c349621288b (diff)
Migrate `g_led_config` to DD (I) (#25600)
Diffstat (limited to 'keyboards/idyllic')
-rw-r--r--keyboards/idyllic/tinny50_rgb/keyboard.json34
-rw-r--r--keyboards/idyllic/tinny50_rgb/tinny50_rgb.c45
2 files changed, 33 insertions, 46 deletions
diff --git a/keyboards/idyllic/tinny50_rgb/keyboard.json b/keyboards/idyllic/tinny50_rgb/keyboard.json
index 4d3cd320dd..e3d44714ab 100644
--- a/keyboards/idyllic/tinny50_rgb/keyboard.json
+++ b/keyboards/idyllic/tinny50_rgb/keyboard.json
@@ -59,7 +59,39 @@
"default": {
"val": 223
},
- "driver": "ws2812"
+ "driver": "ws2812",
+ "layout": [
+ {"x": 126, "y": 64, "flags": 2},
+ {"x": 108, "y": 64, "flags": 2},
+ {"x": 90, "y": 64, "flags": 2},
+ {"x": 72, "y": 64, "flags": 2},
+ {"x": 54, "y": 64, "flags": 2},
+ {"x": 36, "y": 64, "flags": 2},
+ {"x": 18, "y": 64, "flags": 2},
+ {"x": 0, "y": 52, "flags": 2},
+ {"x": 0, "y": 39, "flags": 2},
+ {"x": 0, "y": 26, "flags": 2},
+ {"x": 0, "y": 13, "flags": 2},
+ {"x": 18, "y": 0, "flags": 2},
+ {"x": 36, "y": 0, "flags": 2},
+ {"x": 54, "y": 0, "flags": 2},
+ {"x": 72, "y": 0, "flags": 2},
+ {"x": 90, "y": 0, "flags": 2},
+ {"x": 108, "y": 0, "flags": 2},
+ {"x": 126, "y": 0, "flags": 2},
+ {"x": 144, "y": 0, "flags": 2},
+ {"x": 162, "y": 0, "flags": 2},
+ {"x": 180, "y": 0, "flags": 2},
+ {"x": 198, "y": 0, "flags": 2},
+ {"x": 224, "y": 13, "flags": 2},
+ {"x": 224, "y": 26, "flags": 2},
+ {"x": 224, "y": 39, "flags": 2},
+ {"x": 224, "y": 52, "flags": 2},
+ {"x": 198, "y": 64, "flags": 2},
+ {"x": 180, "y": 64, "flags": 2},
+ {"x": 162, "y": 64, "flags": 2},
+ {"x": 144, "y": 64, "flags": 2}
+ ]
},
"ws2812": {
"pin": "GP10",
diff --git a/keyboards/idyllic/tinny50_rgb/tinny50_rgb.c b/keyboards/idyllic/tinny50_rgb/tinny50_rgb.c
deleted file mode 100644
index d8b06b8fb6..0000000000
--- a/keyboards/idyllic/tinny50_rgb/tinny50_rgb.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
-Copyright 2022 Zykrah
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#include "quantum.h"
-
-#ifdef RGB_MATRIX_ENABLE
-led_config_t g_led_config = {
- {
- // Key Matrix to LED Index
- {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, 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, 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, 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}
- }, {
- // LED Index to Physical Position
- {150, 64}, {130, 64}, {110, 64}, { 90, 64}, { 70, 64}, { 50, 64}, { 30, 64},
- { 0, 52}, { 0, 39}, { 0, 26}, { 0, 13},
- { 30, 0}, { 50, 0}, { 70, 0}, { 90, 0}, {110, 0}, {130, 0}, {150, 0}, {170, 0}, {190, 0}, {210, 0}, {230, 0},
- {255, 13}, {255, 26}, {255, 39}, {255, 52},
- {230, 64}, {210, 64}, {190, 64}, {170, 64}
- }, {
- // LED Index to Flag
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // UNDERGLOW
- 2, 2, 2, 2, // UNDERGLOW
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // UNDERGLOW
- 2, 2, 2, 2, // UNDERGLOW
- }
-};
-#endif
-