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

@ -30,11 +30,6 @@
#define MATRIX_ROW_PINS { D7, E6, B4, B5, F6, F7, B1, B3, B6, B2 }
#define MATRIX_COL_PINS { F4, F5, C6, D4, D2, D3 }
/* encoder support */
#define ENCODERS_PAD_A { D5, D5 }
#define ENCODERS_PAD_B { B7, C7 }
#define ENCODER_RESOLUTION 4
/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
#define DIODE_DIRECTION COL2ROW

View file

@ -8,6 +8,12 @@
"pid": "0x0001",
"device_version": "0.0.2"
},
"encoder": {
"rotary": [
{"pin_a": "D5", "pin_b": "B7"},
{"pin_a": "D5", "pin_b": "C7"}
]
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {