aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/silverbullet44
diff options
context:
space:
mode:
authorJack Sangdahl2025-09-09 11:07:06 +0200
committerGitHub2025-09-09 11:07:06 +0200
commit8f22831f01299f1ae37c748f270fbee777867aa5 (patch)
tree82a01fd1f353d60a6a003a7de9514f6fa7ac47cd /keyboards/silverbullet44
parent6c96bb5a5a90da5b4db68fc915413fb97b6c3056 (diff)
Migrate `g_led_config` to DD (S) (#25624)
Diffstat (limited to 'keyboards/silverbullet44')
-rw-r--r--keyboards/silverbullet44/keyboard.json54
-rw-r--r--keyboards/silverbullet44/silverbullet44.c45
2 files changed, 54 insertions, 45 deletions
diff --git a/keyboards/silverbullet44/keyboard.json b/keyboards/silverbullet44/keyboard.json
index 26e2bcce3a..a724314212 100644
--- a/keyboards/silverbullet44/keyboard.json
+++ b/keyboards/silverbullet44/keyboard.json
@@ -30,6 +30,60 @@
"animation": "typing_heatmap"
},
"driver": "ws2812",
+ "layout": [
+ {"matrix": [0, 3], "x": 139, "y": 16, "flags": 2},
+ {"matrix": [0, 4], "x": 174, "y": 13, "flags": 2},
+ {"matrix": [0, 5], "x": 208, "y": 20, "flags": 2},
+ {"matrix": [1, 5], "x": 208, "y": 38, "flags": 2},
+ {"matrix": [1, 4], "x": 174, "y": 48, "flags": 2},
+ {"matrix": [1, 3], "x": 139, "y": 52, "flags": 2},
+ {"matrix": [0, 2], "x": 129, "y": 63, "flags": 1},
+ {"matrix": [0, 1], "x": 139, "y": 39, "flags": 4},
+ {"matrix": [1, 2], "x": 139, "y": 21, "flags": 4},
+ {"matrix": [2, 3], "x": 139, "y": 4, "flags": 4},
+ {"matrix": [2, 4], "x": 156, "y": 2, "flags": 4},
+ {"matrix": [2, 5], "x": 156, "y": 19, "flags": 4},
+ {"matrix": [3, 5], "x": 156, "y": 37, "flags": 4},
+ {"matrix": [3, 4], "x": 144, "y": 58, "flags": 1},
+ {"matrix": [3, 3], "x": 164, "y": 55, "flags": 1},
+ {"matrix": [3, 2], "x": 174, "y": 35, "flags": 4},
+ {"matrix": [2, 2], "x": 174, "y": 13, "flags": 4},
+ {"matrix": [1, 1], "x": 174, "y": 0, "flags": 4},
+ {"matrix": [0, 0], "x": 191, "y": 3, "flags": 4},
+ {"matrix": [1, 0], "x": 191, "y": 20, "flags": 4},
+ {"matrix": [2, 1], "x": 191, "y": 37, "flags": 4},
+ {"matrix": [2, 0], "x": 208, "y": 42, "flags": 4},
+ {"x": 208, "y": 24, "flags": 4},
+ {"x": 208, "y": 7, "flags": 4},
+ {"x": 224, "y": 7, "flags": 1},
+ {"x": 224, "y": 24, "flags": 1},
+ {"x": 224, "y": 41, "flags": 1},
+ {"x": 85, "y": 16, "flags": 2},
+ {"x": 50, "y": 13, "flags": 2},
+ {"x": 16, "y": 20, "flags": 2},
+ {"x": 16, "y": 38, "flags": 2},
+ {"x": 50, "y": 48, "flags": 2},
+ {"x": 85, "y": 52, "flags": 2},
+ {"x": 95, "y": 63, "flags": 1},
+ {"x": 85, "y": 39, "flags": 4},
+ {"x": 85, "y": 21, "flags": 4},
+ {"x": 85, "y": 4, "flags": 4},
+ {"x": 68, "y": 2, "flags": 4},
+ {"x": 68, "y": 19, "flags": 4},
+ {"x": 68, "y": 37, "flags": 4},
+ {"x": 80, "y": 58, "flags": 1},
+ {"x": 60, "y": 55, "flags": 1},
+ {"x": 50, "y": 35, "flags": 4},
+ {"x": 50, "y": 13, "flags": 4},
+ {"x": 50, "y": 0, "flags": 4},
+ {"x": 33, "y": 3, "flags": 4},
+ {"x": 33, "y": 20, "flags": 4},
+ {"x": 33, "y": 37, "flags": 4},
+ {"x": 16, "y": 42, "flags": 4},
+ {"x": 16, "y": 24, "flags": 4},
+ {"x": 16, "y": 7, "flags": 4},
+ {"x": 0, "y": 7, "flags": 1}
+ ],
"max_brightness": 150,
"sat_steps": 8,
"val_steps": 8,
diff --git a/keyboards/silverbullet44/silverbullet44.c b/keyboards/silverbullet44/silverbullet44.c
deleted file mode 100644
index 00bd6153c9..0000000000
--- a/keyboards/silverbullet44/silverbullet44.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Copyright 2019 SwanMatch
- *
- * 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
- { 18, 7, 6, 0, 1, 2},
- { 19, 17, 8, 5, 4, 3},
- { 21, 20, 16, 9, 10, 11},
- { NO_LED, NO_LED, 15, 14, 13, 12},
-}, {
- { 139, 16 }, { 174, 13 }, { 208, 20 }, { 208, 38 }, { 174, 48 }, { 139, 52 }, { 129, 63 },
- { 139, 39 }, { 139, 21 }, { 139, 4 }, { 156, 2 }, { 156, 19 }, { 156, 37 }, { 144, 58 },
- { 164, 55 }, { 174, 35 }, { 174, 13 }, { 174, 0 }, { 191, 3 }, { 191, 20 }, { 191, 37 },
- { 208, 42 }, { 208, 24 }, { 208, 7 }, { 224, 7 }, { 224, 24 }, { 224, 41 }, { 85, 16 },
- { 50, 13 }, { 16, 20 }, { 16, 38 }, { 50, 48 }, { 85, 52 }, { 95, 63 }, { 85, 39 },
- { 85, 21 }, { 85, 4 }, { 68, 2 }, { 68, 19 }, { 68, 37 }, { 80, 58 }, { 60, 55 },
- { 50, 35 }, { 50, 13 }, { 50, 0 }, { 33, 3 }, { 33, 20 }, { 33, 37 }, { 16, 42 },
- { 16, 24 }, { 16, 7 }, { 0, 7 }
-}, {
- 2, 2, 2, 2, 2, 2, 1,
- 4, 4, 4, 4, 4, 4, 1,
- 1, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 1, 1, 1, 2,
- 2, 2, 2, 2, 2, 1, 4,
- 4, 4, 4, 4, 4, 1, 1,
- 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 1
-} };
-
-#endif