diff --git a/holland/brenno.png b/holland/brenno.png new file mode 100644 index 0000000..406002a Binary files /dev/null and b/holland/brenno.png differ diff --git a/holland/main.py b/holland/main.py index 0cfbaef..dedb8d0 100644 --- a/holland/main.py +++ b/holland/main.py @@ -111,6 +111,8 @@ def cbButton1(button_id): ugfx.display_image(0, 0, "holland/eu.png") def cbButton2(button_id): + sim800.speakervolume(100) + sim800.stopplayback() show_screen(0x000000, 0xFFFFFF, "PLAY") a = sim800.startplayback(1,0,100) if not a: @@ -148,6 +150,11 @@ def cbButton8(button_id): def cbButton9(button_id): global strobe strobe = False + +def cbButtonHash(button_id): + global vip + vip = False + ugfx.display_image(0, 0, "holland/brenno.png") Buttons.enable_interrupt( Buttons.BTN_Call, @@ -221,6 +228,12 @@ Buttons.enable_interrupt( on_press=True, on_release=False); +Buttons.enable_interrupt( + Buttons.BTN_Hash, + cbButtonHash, + on_press=True, + on_release=False); + vip = True aaa = False @@ -238,5 +251,7 @@ while True: else: n.display([0x000000, 0x000000]) aaa = True + if not vip: + time.sleep(0.1) else: time.sleep(0.1)