Move matrix config to info.json, part 7 (#20020)

This commit is contained in:
Ryan
2023-03-11 00:39:56 +11:00
committed by GitHub
parent ace372d90d
commit caa8c81086
421 changed files with 1081 additions and 3038 deletions

View File

@@ -18,19 +18,6 @@
*/
#define TAPPING_TERM 0
/*
* 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 { B12, B13, B14, B15 }
#define MATRIX_COL_PINS { B10, A8, B4, B5 }
/* spi config */
#define SPI_DRIVER SPID1
#define SPI_SCK_PIN A5
@@ -44,9 +31,6 @@
#define TAP_CODE_DELAY 10
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* RGB settings, uncomment this define to enable RGB */
#define RGB_DI_PIN A3
#ifdef RGB_DI_PIN

View File

@@ -8,6 +8,11 @@
"pid": "0x170F",
"device_version": "1.0.0"
},
"matrix_pins": {
"cols": ["B10", "A8", "B4", "B5"],
"rows": ["B12", "B13", "B14", "B15"]
},
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B1", "pin_b": "B0"},