Move encoder config to data driven (#19923)

Co-authored-by: Nick Brassel <[email protected]>
This commit is contained in:
RyanandNick Brassel authored and GitHub committed 2023-02-26 09:45:12 +11:00
1 parent 314f6c1ddb
commit 7e0299117b
972 files changed
+2898 -2569

No files matched your search

-5
View File
@@ -42,8 +42,3 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
/* Optional encoder pins */
// Encoders are defined in order. 1: B2 & B3, 2: B4 & B5, 3: D0 & D1, 4: D2 & D3
#define ENCODERS_PAD_A { B2, B4, D0, D3 }
#define ENCODERS_PAD_B { B3, B5, D1, D2 }
+8
View File
@@ -7,6 +7,14 @@
"pid": "0x6064",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "B2", "pin_b": "B3"},
{"pin_a": "B4", "pin_b": "B5"},
{"pin_a": "D0", "pin_b": "D1"},
{"pin_a": "D3", "pin_b": "D2"}
]
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {