summaryrefslogtreecommitdiff
path: root/keyboards/xiudi/xd002
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-14 18:39:41 +1100
committerGitHub <noreply@github.com>2023-02-14 00:39:41 -0700
commit2cdf99ae950a82e233482347651b7689c4896827 (patch)
treef26def8c2fd844dad22095d5223fb539b7413ad0 /keyboards/xiudi/xd002
parent0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff)
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/xiudi/xd002')
-rw-r--r--keyboards/xiudi/xd002/config.h12
-rw-r--r--keyboards/xiudi/xd002/info.json5
2 files changed, 5 insertions, 12 deletions
diff --git a/keyboards/xiudi/xd002/config.h b/keyboards/xiudi/xd002/config.h
index fc84c89bf6..19f01664b2 100644
--- a/keyboards/xiudi/xd002/config.h
+++ b/keyboards/xiudi/xd002/config.h
@@ -15,18 +15,6 @@
*/
#pragma once
-
-/* matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 2
-
-/*
- * Keyboard Matrix Assignments
- *
- * On this board we have direct connection: no diodes.
- */
-#define DIRECT_PINS {{ B0, B1 }}
-
#define RGBLED_NUM 2
#define RGB_DI_PIN B2
diff --git a/keyboards/xiudi/xd002/info.json b/keyboards/xiudi/xd002/info.json
index f06e823a88..4284b0548b 100644
--- a/keyboards/xiudi/xd002/info.json
+++ b/keyboards/xiudi/xd002/info.json
@@ -8,6 +8,11 @@
"pid": "0x0202",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "direct": [
+ ["B0", "B1"]
+ ]
+ },
"layouts": {
"LAYOUT": {
"layout": [