Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -23,13 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define AUDIO_PIN C4
|
||||
#define AUDIO_CLICKY
|
||||
|
||||
/*
|
||||
* Encoder Assignments
|
||||
*/
|
||||
#define ENCODERS_PAD_A { D0, C5 }
|
||||
#define ENCODERS_PAD_B { D1, C6 }
|
||||
#define ENCODER_RESOLUTION 4
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
|
@@ -26,6 +26,12 @@
|
||||
"usb": {
|
||||
"pid": "0x23A0"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "D0", "pin_b": "D1"},
|
||||
{"pin_a": "C5", "pin_b": "C6"}
|
||||
]
|
||||
},
|
||||
"layout_aliases": {
|
||||
"LAYOUT": "LAYOUT_all"
|
||||
},
|
||||
|
Reference in New Issue
Block a user