From 069b6a33fcfd575f11cafd4d22f5e6088a96ccb1 Mon Sep 17 00:00:00 2001 From: Renze Nicolai Date: Sun, 2 Sep 2018 18:34:59 +0200 Subject: [PATCH] Bugfixes and strobe --- holland/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/holland/main.py b/holland/main.py index 0cfbaef..96ecf57 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: @@ -238,5 +240,7 @@ while True: else: n.display([0x000000, 0x000000]) aaa = True + if not vip: + time.sleep(0.1) else: time.sleep(0.1)