diff --git a/cmd.exe.lnk b/cmd.exe.lnk index e92d255..277074e 100644 Binary files a/cmd.exe.lnk and b/cmd.exe.lnk differ diff --git a/nyan_home/main.py b/nyan_home/main.py index 04e808f..f52d216 100644 --- a/nyan_home/main.py +++ b/nyan_home/main.py @@ -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() \ No newline at end of file +app.restart_to_default() \ No newline at end of file diff --git a/tilda_tools.bat b/tilda_tools.bat index 0d0e351..76c731f 100644 --- a/tilda_tools.bat +++ b/tilda_tools.bat @@ -1,2 +1,2 @@ @echo off -python %CD%/.development\tilda_tools.py %* \ No newline at end of file +python "%CD%/.development\tilda_tools.py" %* \ No newline at end of file