Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -31,14 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_COL_PINS { D1, D0, D4, C6, D7, E6, F7 }
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* encoder support */
|
||||
#define ENCODERS_PAD_A { B3 }
|
||||
#define ENCODERS_PAD_B { B2 }
|
||||
#define ENCODER_RESOLUTION 2
|
||||
#define ENCODERS_PAD_A_RIGHT { B2 }
|
||||
#define ENCODERS_PAD_B_RIGHT { B3 }
|
||||
#define ENCODER_RESOLUTION_RIGHT 2
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@@ -8,8 +8,20 @@
|
||||
"pid": "0x91CE",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "B3", "pin_b": "B2", "resolution": 2}
|
||||
]
|
||||
},
|
||||
"split": {
|
||||
"soft_serial_pin": "D2"
|
||||
"soft_serial_pin": "D2",
|
||||
"encoder": {
|
||||
"right": {
|
||||
"rotary": [
|
||||
{"pin_a": "B2", "pin_b": "B3", "resolution": 2}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
|
Reference in New Issue
Block a user