Migrate DIRECT_PINS to data driven (#19826)

This commit is contained in:
Ryan
2023-02-14 18:39:41 +11:00
committed by GitHub
parent 0b796b91a3
commit 2cdf99ae95
158 changed files with 560 additions and 1197 deletions

View File

@@ -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

View File

@@ -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": {