@@ -277,7 +277,12 @@ def start_ota(pushed):
277
277
if (pushed ):
278
278
print ("[SPLASH] Starting OTA..." )
279
279
appglue .start_ota ()
280
-
280
+
281
+ # NOTHING
282
+ def nothing (pressed ):
283
+ if (pressed ):
284
+ reset_countdown ()
285
+
281
286
# MAGIC
282
287
def actually_start_magic ():
283
288
print ("[SPLASH] Starting magic..." )
@@ -286,6 +291,7 @@ def actually_start_magic():
286
291
287
292
magic = 0
288
293
def start_magic (pushed ):
294
+ reset_countdown ()
289
295
global magic
290
296
if (pushed ):
291
297
magic = magic + 1
@@ -312,7 +318,7 @@ def badge_sleep_forever():
312
318
def splashTimer_callback (tmr ):
313
319
global loopCnt
314
320
global timer_loop_amount
315
- # print("[TIMER] "+str(loopCnt))
321
+ print ("[TIMER] " + str (loopCnt ))
316
322
if loopCnt < 1 :
317
323
loopCnt = timer_loop_amount
318
324
cstate = badge .battery_charge_status ()
@@ -338,6 +344,11 @@ def splashTimer_callback(tmr):
338
344
if (loop_services (loopCnt )):
339
345
loopCnt = timer_loop_amount
340
346
loopCnt = loopCnt - 1
347
+
348
+ def reset_countdown ():
349
+ global loopCnt
350
+ global timer_loop_amount
351
+ loopCnt = timer_loop_amount
341
352
342
353
def start_sleep_counter ():
343
354
global splashTimer
@@ -497,6 +508,12 @@ def splash_main():
497
508
welcome ()
498
509
ugfx .input_attach (ugfx .BTN_START , start_launcher )
499
510
ugfx .input_attach (ugfx .BTN_A , start_magic )
511
+ ugfx .input_attach (ugfx .BTN_B , nothing )
512
+ ugfx .input_attach (ugfx .BTN_SELECT , nothing )
513
+ ugfx .input_attach (ugfx .JOY_UP , nothing )
514
+ ugfx .input_attach (ugfx .JOY_DOWN , nothing )
515
+ ugfx .input_attach (ugfx .JOY_LEFT , nothing )
516
+ ugfx .input_attach (ugfx .JOY_RIGHT , nothing )
500
517
global splashTimer
501
518
setup_services ()
502
519
start_sleep_counter ()
@@ -527,7 +544,7 @@ def splash_main():
527
544
splash_timer_interval = 500
528
545
529
546
update_available = False
530
- update_name = "BIG FAT ERROR "
547
+ update_name = "???? "
531
548
update_build = 0
532
549
533
550
splash_main ()
0 commit comments