Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -34,13 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* COL2ROW, ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* ROTARY ENCODERS */
|
||||
#define ENCODERS_PAD_A { F5, D6 }
|
||||
#define ENCODERS_PAD_B { F6, D7 }
|
||||
|
||||
#define ENCODER_RESOLUTION 4
|
||||
//#define ENCODER_DIRECTION_FLIP
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
|
@@ -8,6 +8,12 @@
|
||||
"pid": "0x7774",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "F5", "pin_b": "F6"},
|
||||
{"pin_a": "D6", "pin_b": "D7"}
|
||||
]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"debounce": 4,
|
||||
|
Reference in New Issue
Block a user