summaryrefslogtreecommitdiffstats
path: root/keyboards/beekeeb
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/beekeeb
parent0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff)
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/beekeeb')
-rw-r--r--keyboards/beekeeb/piantor/config.h18
-rw-r--r--keyboards/beekeeb/piantor/info.json20
2 files changed, 19 insertions, 19 deletions
diff --git a/keyboards/beekeeb/piantor/config.h b/keyboards/beekeeb/piantor/config.h
index 8a3e5eb467..6a50429c20 100644
--- a/keyboards/beekeeb/piantor/config.h
+++ b/keyboards/beekeeb/piantor/config.h
@@ -11,23 +11,5 @@
#define SERIAL_USART_TX_PIN GP0
#define SERIAL_USART_RX_PIN GP1
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 6
-
-#define DIRECT_PINS { \
- { GP5, GP4, GP11, GP15, GP3, GP2}, \
- { GP22, GP20, GP10, GP14, GP9, GP8}, \
- { GP21, GP19, GP6, GP7, GP13, GP12}, \
- { GP17, GP18, GP16, NO_PIN, NO_PIN, NO_PIN} \
-}
-
-#define DIRECT_PINS_RIGHT { \
- { GP22, GP21, GP2, GP5, GP8, GP11}, \
- { GP20, GP19, GP3, GP6, GP9, GP12}, \
- { GP18, GP17, GP4, GP7, GP10, GP13}, \
- { GP15, GP14, GP16, NO_PIN, NO_PIN, NO_PIN} \
-}
-
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 5
diff --git a/keyboards/beekeeb/piantor/info.json b/keyboards/beekeeb/piantor/info.json
index 50f4feed66..a914b1882d 100644
--- a/keyboards/beekeeb/piantor/info.json
+++ b/keyboards/beekeeb/piantor/info.json
@@ -18,8 +18,26 @@
"pid": "0x0001",
"vid": "0xBEEB"
},
+ "matrix_pins": {
+ "direct": [
+ ["GP5", "GP4", "GP11", "GP15", "GP3", "GP2"],
+ ["GP22", "GP20", "GP10", "GP14", "GP9", "GP8"],
+ ["GP21", "GP19", "GP6", "GP7", "GP13", "GP12"],
+ ["GP17", "GP18", "GP16", null, null, null]
+ ]
+ },
"split": {
- "enabled": true
+ "enabled": true,
+ "matrix_pins": {
+ "right": {
+ "direct": [
+ ["GP22", "GP21", "GP2", "GP5", "GP8", "GP11"],
+ ["GP20", "GP19", "GP3", "GP6", "GP9", "GP12"],
+ ["GP18", "GP17", "GP4", "GP7", "GP10", "GP13"],
+ ["GP15", "GP14", "GP16", null, null, null]
+ ]
+ }
+ }
},
"community_layouts": ["split_3x6_3"],
"layouts": {