Move matrix config to info.json, part 1 (#19985)

This commit is contained in:
Ryan
2023-03-06 09:53:52 +11:00
committed by GitHub
parent b34d51d08d
commit 23c365b023
502 changed files with 1299 additions and 3461 deletions

View File

@@ -15,25 +15,6 @@
*/
#pragma once
/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_COL_PINS { B15, B10, B0, A5, A4, A3 }
#define MATRIX_ROW_PINS { A10, A15, B3, B4 }
#define MATRIX_COL_PINS_RIGHT { B10, B15, A10, A15, B3, B4 }
#define MATRIX_ROW_PINS_RIGHT { B0, A5, A4, A3 }
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define MATRIX_IO_DELAY 5
#define SPLIT_HAND_PIN B9

View File

@@ -8,6 +8,11 @@
"pid": "0x0048",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["B15", "B10", "B0", "A5", "A4", "A3"],
"rows": ["A10", "A15", "B3", "B4"]
},
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B5", "pin_b": "A2"}
@@ -17,6 +22,12 @@
"soft_serial_pin": "B6",
"bootmagic": {
"matrix": [4, 0]
},
"matrix_pins": {
"right": {
"cols": ["B10", "B15", "A10", "A15", "B3", "B4"],
"rows": ["B0", "A5", "A4", "A3"]
}
}
},
"community_layouts": ["ortho_4x12"],