aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-05-19 19:29:48 +0000
committers-ol <s+removethis@s-ol.nu>2022-05-21 16:51:02 +0000
commit3297674cfb00310b79937a35fc453d581dfc15ea (patch)
tree83fccf62ff5edfcd65246df44771379c9b3f886b
parentdon't show repl while booting (diff)
downloadfirmware-3297674cfb00310b79937a35fc453d581dfc15ea.tar.gz
firmware-3297674cfb00310b79937a35fc453d581dfc15ea.zip
reduce menu button tapping term to 300ms
-rw-r--r--hex33board/__init__.py2
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