forked from mirrors/qmk_userspace
Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
parent
314f6c1ddb
commit
7e0299117b
972 changed files with 2898 additions and 2569 deletions
|
@ -16,9 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/
|
||||
|
||||
#pragma once
|
||||
#define ENCODERS_PAD_A { D4 }
|
||||
#define ENCODERS_PAD_B { D6 }
|
||||
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
"pid": "0x6060",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "D4", "pin_b": "D6"}
|
||||
]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
|
|
@ -31,10 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
/* COL2ROW, ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define ENCODERS_PAD_A { D6 }
|
||||
#define ENCODERS_PAD_B { D7 }
|
||||
#define ENCODER_RESOLUTION 2
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
"pid": "0x6060",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "D6", "pin_b": "D7", "resolution": 2}
|
||||
]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
|
|
@ -34,10 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
/* COL2ROW, ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define ENCODERS_PAD_A { B3, D1 }
|
||||
#define ENCODERS_PAD_B { B2, D2 }
|
||||
#define ENCODER_RESOLUTION 2
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
"pid": "0x6060",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "B3", "pin_b": "B2", "resolution": 2},
|
||||
{"pin_a": "D1", "pin_b": "D2", "resolution": 2}
|
||||
]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layout_aliases": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue