diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-05-19 19:29:48 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2022-05-21 16:51:02 +0000 |
| commit | 3297674cfb00310b79937a35fc453d581dfc15ea (patch) | |
| tree | 83fccf62ff5edfcd65246df44771379c9b3f886b | |
| parent | don't show repl while booting (diff) | |
| download | firmware-3297674cfb00310b79937a35fc453d581dfc15ea.tar.gz firmware-3297674cfb00310b79937a35fc453d581dfc15ea.zip | |
reduce menu button tapping term to 300ms
| -rw-r--r-- | hex33board/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hex33board/__init__.py b/hex33board/__init__.py index 9bb5867..09bd72c 100644 --- a/hex33board/__init__.py +++ b/hex33board/__init__.py @@ -188,7 +188,7 @@ class BaseShiftMode(Mode): def key_event(self, i: int, pressed: bool) -> bool: if not pressed and i == Key.MENU_I: held = ticks_diff(supervisor.ticks_ms(), self.entered) - if not self.pressed_something and held <= 800: + if not self.pressed_something and held <= 300: # tap: enter menu self.keyboard.mode = self.keyboard.modes["menu"] return True |
