aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ning/tiny_board/tb16_rgb
diff options
context:
space:
mode:
authorJack Sangdahl2025-09-09 11:08:42 +0200
committerGitHub2025-09-09 11:08:42 +0200
commitff1900190c166d28f8d903ea7bf723658780d192 (patch)
tree0df8bca5cdc1290d36d378d11d2b119521c800aa /keyboards/ning/tiny_board/tb16_rgb
parent2818085d3fffb645e1835326104534ee94b03fdb (diff)
Migrate `g_led_config` to DD (NO) (#25621)
Diffstat (limited to 'keyboards/ning/tiny_board/tb16_rgb')
-rw-r--r--keyboards/ning/tiny_board/tb16_rgb/keyboard.json20
-rw-r--r--keyboards/ning/tiny_board/tb16_rgb/tb16_rgb.c31
2 files changed, 19 insertions, 32 deletions
diff --git a/keyboards/ning/tiny_board/tb16_rgb/keyboard.json b/keyboards/ning/tiny_board/tb16_rgb/keyboard.json
index 9e99ef879a..104a4a84a6 100644
--- a/keyboards/ning/tiny_board/tb16_rgb/keyboard.json
+++ b/keyboards/ning/tiny_board/tb16_rgb/keyboard.json
@@ -20,7 +20,25 @@
"default": {
"animation": "typing_heatmap"
},
- "driver": "ws2812"
+ "driver": "ws2812",
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
+ {"matrix": [0, 1], "x": 75, "y": 0, "flags": 4},
+ {"matrix": [0, 2], "x": 150, "y": 0, "flags": 4},
+ {"matrix": [0, 3], "x": 224, "y": 0, "flags": 4},
+ {"matrix": [1, 0], "x": 0, "y": 21, "flags": 4},
+ {"matrix": [1, 1], "x": 75, "y": 21, "flags": 4},
+ {"matrix": [1, 2], "x": 150, "y": 21, "flags": 4},
+ {"matrix": [1, 3], "x": 224, "y": 21, "flags": 4},
+ {"matrix": [2, 0], "x": 0, "y": 42, "flags": 4},
+ {"matrix": [2, 1], "x": 75, "y": 42, "flags": 4},
+ {"matrix": [2, 2], "x": 150, "y": 42, "flags": 4},
+ {"matrix": [2, 3], "x": 224, "y": 42, "flags": 4},
+ {"matrix": [3, 0], "x": 0, "y": 64, "flags": 4},
+ {"matrix": [3, 1], "x": 75, "y": 64, "flags": 4},
+ {"matrix": [3, 2], "x": 150, "y": 64, "flags": 4},
+ {"matrix": [3, 3], "x": 224, "y": 64, "flags": 4}
+ ]
},
"matrix_pins": {
"cols": ["B6", "B1", "B3", "B2"],
diff --git a/keyboards/ning/tiny_board/tb16_rgb/tb16_rgb.c b/keyboards/ning/tiny_board/tb16_rgb/tb16_rgb.c
deleted file mode 100644
index e7807be5e8..0000000000
--- a/keyboards/ning/tiny_board/tb16_rgb/tb16_rgb.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Copyright 2023 Ning (@ningjx)
- *
- * 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"
-
-led_config_t g_led_config = { {
- { 0, 1, 2, 3 },
- { 4, 5, 6, 7 },
- { 8, 9, 10, 11 },
- { 12, 13, 14, 15 }
-}, {
- {0,0},{75,0},{150,0},{224,0},
- {0,21},{75,21},{150,21},{224,21},
- {0,42},{75,42},{150,42},{224,42},
- {0,64},{75,64},{150,64},{224,64}
-}, {
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
-} };