Default rotary encoder to raw no-slop access, opt-in in keymap. Feels WAY better now.

This commit is contained in:
Josh Klar 2018-10-11 13:38:15 -07:00
parent 6589982eda
commit d5a2be38ef
No known key found for this signature in database
GPG Key ID: 220F99BD7DB7A99E
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ VOL_DOWN_RELEASE = keycode_up_event(Media.KC_AUDIO_VOL_DOWN)
class RotaryEncoderMacro:
def __init__(self, pos_pin, neg_pin, slop_history=24, slop_threshold=0.7):
def __init__(self, pos_pin, neg_pin, slop_history=1, slop_threshold=1):
self.encoder = RotaryEncoder(pos_pin, neg_pin)
self.max_history = slop_history
self.history = bytearray(slop_history)

View File

@ -17,7 +17,7 @@ diode_orientation = DiodeOrientation.COLUMNS
unicode_mode = UnicodeModes.LINUX
encoders = [
VolumeRotaryEncoder(P.A3, P.A2),
VolumeRotaryEncoder(P.A3, P.A2, 6, 0.6),
]
emoticons = AttrDict({