Move matrix config to info.json, part 6 (#20019)
This commit is contained in:
@@ -23,10 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* LSE clock */
|
||||
#define STM32_LSECLK 32768
|
||||
|
||||
#define MATRIX_COL_PINS { B1, B2, B10, B11, B12, B13, B14, A8, A9, A10, B0, A7, A5, B5, A15, A1 }
|
||||
#define MATRIX_ROW_PINS { B3, B4, A0, A2, A4, A3 }
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
// I2C config
|
||||
#define I2C_DRIVER I2CD1
|
||||
#define I2C1_SCL_PIN B6
|
||||
|
||||
@@ -8,6 +8,11 @@
|
||||
"pid": "0x57F5",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B1", "B2", "B10", "B11", "B12", "B13", "B14", "A8", "A9", "A10", "B0", "A7", "A5", "B5", "A15", "A1"],
|
||||
"rows": ["B3", "B4", "A0", "A2", "A4", "A3"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "B9", "pin_b": "B8", "resolution": 2}
|
||||
|
||||
Reference in New Issue
Block a user