tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 347b2251062cfa2b4aa0c842413fb692309d8573
parent 6c64a6d5f01faaf23142e87f6785d607542d07fc
Author: rbckman <robinbackman@gmail.com>
Date:   Mon, 13 Mar 2017 16:25:14 +0000

add shutdown to holdbutton

Diffstat:
Mtarina.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tarina.py b/tarina.py @@ -999,7 +999,7 @@ def getbutton(lastbutton, buttonpressed, buttontime, holdbutton): if readbus == 255 and readbus2 == 245: buttonpressed = False if float(time.time() - buttontime) > 0.15 and buttonpressed == True: - if holdbutton == 'up' or holdbutton == 'down' or holdbutton == 'right' or holdbutton == 'left': + if holdbutton == 'up' or holdbutton == 'down' or holdbutton == 'right' or holdbutton == 'left' or holdbutton == 'shutdown': pressed = holdbutton return pressed, buttonpressed, buttontime, holdbutton