aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/yncognito
diff options
context:
space:
mode:
authorJack Sangdahl2025-09-11 19:34:10 +0200
committerGitHub2025-09-11 19:34:10 +0200
commit74b0f054c1850baab3a4a66b6296ebe240a6b7ae (patch)
tree39f770a772cbb08f59ba0e99a3fc8d62eb388936 /keyboards/yncognito
parent6eee1940e8b9ce9a2b57f7fcec3cd92224b6113f (diff)
Migrate `g_led_config` to DD (YZ) (#25650)
Diffstat (limited to 'keyboards/yncognito')
-rw-r--r--keyboards/yncognito/batpad/batpad.c35
-rw-r--r--keyboards/yncognito/batpad/keyboard.json10
2 files changed, 10 insertions, 35 deletions
diff --git a/keyboards/yncognito/batpad/batpad.c b/keyboards/yncognito/batpad/batpad.c
deleted file mode 100644
index d5eef4246d..0000000000
--- a/keyboards/yncognito/batpad/batpad.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright 2020 Yncognito
- *
- * 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 ={
- {
- {4 ,5 ,6 ,7 },
- {0 ,1 ,2 ,3 }
- },
- {
- {0,0},{75,0},{145,0},{224,0},
- {0,64},{75,64},{145,64},{224,64}
- },
- {
- 0x04,0x04,0x04,0x04,
- 0x04,0x04,0x04,0x04
- }
-};
-
-#endif
diff --git a/keyboards/yncognito/batpad/keyboard.json b/keyboards/yncognito/batpad/keyboard.json
index 3e62042a4e..02e480ca22 100644
--- a/keyboards/yncognito/batpad/keyboard.json
+++ b/keyboards/yncognito/batpad/keyboard.json
@@ -60,6 +60,16 @@
"animation": "cycle_all"
},
"driver": "ws2812",
+ "layout": [
+ {"matrix": [1, 0], "x": 0, "y": 0, "flags": 4},
+ {"matrix": [1, 1], "x": 75, "y": 0, "flags": 4},
+ {"matrix": [1, 2], "x": 145, "y": 0, "flags": 4},
+ {"matrix": [1, 3], "x": 224, "y": 0, "flags": 4},
+ {"matrix": [0, 0], "x": 0, "y": 64, "flags": 4},
+ {"matrix": [0, 1], "x": 75, "y": 64, "flags": 4},
+ {"matrix": [0, 2], "x": 145, "y": 64, "flags": 4},
+ {"matrix": [0, 3], "x": 224, "y": 64, "flags": 4}
+ ],
"react_on_keyup": true
},
"features": {