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

@@ -17,25 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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_ROW_PINS { B5, B4, E6, D7, C6, D4 }
#define MATRIX_COL_PINS { B1, F7, F6, F5, F4, B3, B2, B6, D0, D1 }
#define MATRIX_ROW_PINS_RIGHT { D1, D0, D4, C6, D7, E6 }
#define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, C7, B7, F1 }
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define SELECT_SOFT_SERIAL_SPEED 1
/*Sets the protocol speed when using serial communication*/
//Speeds:

View File

@@ -8,6 +8,11 @@
"pid": "0xF4B0",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["B1", "F7", "F6", "F5", "F4", "B3", "B2", "B6", "D0", "D1"],
"rows": ["B5", "B4", "E6", "D7", "C6", "D4"]
},
"diode_direction": "COL2ROW",
"encoder": {
"rotary": []
},
@@ -19,6 +24,12 @@
{"pin_a": "B4", "pin_b": "B6"}
]
}
},
"matrix_pins": {
"right": {
"cols": ["F4", "F5", "F6", "F7", "B1", "B3", "B2", "C7", "B7", "F1"],
"rows": ["D1", "D0", "D4", "C6", "D7", "E6"]
}
}
},
"processor": "atmega32u4",