Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -43,13 +43,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
|
||||
|
||||
/* Rotary encoder - set the resolution fitting your encoder.
|
||||
Most will need a value of 4. If 1 encoder click results in 2 keycodes sent
|
||||
increase the value. If you need 2 clicks for 1 keycode, decrease*/
|
||||
#define ENCODER_RESOLUTION 2
|
||||
#define ENCODERS_PAD_A { C15 }
|
||||
#define ENCODERS_PAD_B { C14 }
|
||||
#define TAP_CODE_DELAY 10
|
||||
|
||||
/* ADC - will be used for battery monitoring once BT support is added */
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x1337",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "C15", "pin_b": "C14", "resolution": 2}
|
||||
]
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "A9",
|
||||
"levels": 5,
|
||||
|
Reference in New Issue
Block a user