Move matrix config to info.json, part 4 (#20001)

This commit is contained in:
Ryan 2023-03-11 00:00:24 +11:00 committed by GitHub
parent dd086a51d8
commit 9e64300e67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
584 changed files with 1484 additions and 3703 deletions

View file

@ -1,22 +1,5 @@
#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)
*
*/
#undef MATRIX_ROW_PINS
#undef MATRIX_COL_PINS
#define MATRIX_ROW_PINS { A3, B8, B9, B1 }
#define MATRIX_COL_PINS { A7, A8, B2, B10 }
//Audio
#undef AUDIO_VOICES
#undef AUDIO_PIN
@ -37,17 +20,6 @@
// configure oled driver for the 128x32 oled
#define OLED_UPDATE_INTERVAL 33 // ~30fps
/*
* 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)
*
*/
/*
* Feature disable options
* These options are also useful to firmware size reduction.

View file

@ -2,6 +2,11 @@
"usb": {
"device_version": "20.1.9"
},
"matrix_pins": {
"cols": ["A7", "A8", "B2", "B10"],
"rows": ["A3", "B8", "B9", "B1"]
},
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B13", "pin_b": "B14"}