Move encoder config to data driven (#19923)

Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
Ryan 2023-02-26 09:45:12 +11:00 committed by GitHub
parent 314f6c1ddb
commit 7e0299117b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
972 changed files with 2898 additions and 2569 deletions

View file

@ -31,10 +31,6 @@
#define MATRIX_ROW_PINS { F6, F7, B1, B3 }
#define MATRIX_COL_PINS { B6, B2, D3, D2, D1, D0, D4, C6, D7, E6, B4, B5 }
/* Define encoder pads */
#define ENCODERS_PAD_A { F4 }
#define ENCODERS_PAD_B { F5 }
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

View file

@ -8,6 +8,11 @@
"pid": "0x0003",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "F4", "pin_b": "F5"}
]
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {

View file

@ -38,6 +38,3 @@
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define ENCODERS_PAD_A { F5 }
#define ENCODERS_PAD_B { F4 }

View file

@ -8,6 +8,11 @@
"pid": "0x0004",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "F5", "pin_b": "F4"}
]
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {