fixed menu long press

master
mallyhubz 2018-09-06 01:00:33 +01:00
parent 1531455542
commit e9415827b7
3 changed files with 3 additions and 27 deletions

Binary file not shown.

View File

@ -44,25 +44,7 @@ ugfx.clear()
ugfx.orientation(180)
force_backlight()
Buttons.enable_interrupt(
Buttons.BTN_A,
cbButtonA,
on_press=True,
on_release=False);
Buttons.enable_interrupt(
Buttons.BTN_B,
cbButtonB,
on_press=True,
on_release=False);
def cbButtonA(button_id):
global bkl
bkl = True
def cbButtonB(button_id):
global ext
ext = False
#everything from here onwards is unknown
# Colour stuff
@ -93,12 +75,6 @@ while True:
i = i + 1
if i > 11:
i = 0
sleep_or_exit(0.5)
if bkl:
force_backlight()
continue
if ext:
break
machine.reset()
app.restart_to_default()

View File

@ -1,2 +1,2 @@
@echo off
python %CD%/.development\tilda_tools.py %*
python "%CD%/.development\tilda_tools.py" %*