commit e37e957936c5d7422a864c9f7a01d0a3f9c2b017
parent c9455af5b6d870d58b4735000303f9109a888fcb
Author: rbckman <rbckman@localhost.localdomain>
Date:   Mon,  6 Mar 2017 18:52:41 +0200
button delay fix
Diffstat:
3 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/mcp23017_pinout.png b/mcp23017_pinout.png
Binary files differ.
diff --git a/tarina-proto3.png b/tarina-proto3.png
Binary files differ.
diff --git a/tarina.py b/tarina.py
@@ -1000,7 +1000,7 @@ def getbutton(lastbutton, buttonpressed, buttontime, holdbutton):
         holdbutton = pressed
     if readbus == 255:
         buttonpressed = False
-    if float(time.time() - buttontime) > 1.0 and buttonpressed == True:
+    if float(time.time() - buttontime) > 0.5 and buttonpressed == True:
         pressed = holdbutton
     return pressed, buttonpressed, buttontime, holdbutton