diff --git a/kmk/common/macros/rotary_encoder.py b/kmk/common/macros/rotary_encoder.py index ca6361d..c3bb65d 100644 --- a/kmk/common/macros/rotary_encoder.py +++ b/kmk/common/macros/rotary_encoder.py @@ -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) diff --git a/user_keymaps/klardotsh/itsybitsy_m4_express/threethree.py b/user_keymaps/klardotsh/itsybitsy_m4_express/threethree.py index 148a2f5..3166ff9 100644 --- a/user_keymaps/klardotsh/itsybitsy_m4_express/threethree.py +++ b/user_keymaps/klardotsh/itsybitsy_m4_express/threethree.py @@ -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({