commit
6168dee15a
Binary file not shown.
After Width: | Height: | Size: 136 KiB |
|
@ -111,6 +111,8 @@ def cbButton1(button_id):
|
||||||
ugfx.display_image(0, 0, "holland/eu.png")
|
ugfx.display_image(0, 0, "holland/eu.png")
|
||||||
|
|
||||||
def cbButton2(button_id):
|
def cbButton2(button_id):
|
||||||
|
sim800.speakervolume(100)
|
||||||
|
sim800.stopplayback()
|
||||||
show_screen(0x000000, 0xFFFFFF, "PLAY")
|
show_screen(0x000000, 0xFFFFFF, "PLAY")
|
||||||
a = sim800.startplayback(1,0,100)
|
a = sim800.startplayback(1,0,100)
|
||||||
if not a:
|
if not a:
|
||||||
|
@ -148,6 +150,11 @@ def cbButton8(button_id):
|
||||||
def cbButton9(button_id):
|
def cbButton9(button_id):
|
||||||
global strobe
|
global strobe
|
||||||
strobe = False
|
strobe = False
|
||||||
|
|
||||||
|
def cbButtonHash(button_id):
|
||||||
|
global vip
|
||||||
|
vip = False
|
||||||
|
ugfx.display_image(0, 0, "holland/brenno.png")
|
||||||
|
|
||||||
Buttons.enable_interrupt(
|
Buttons.enable_interrupt(
|
||||||
Buttons.BTN_Call,
|
Buttons.BTN_Call,
|
||||||
|
@ -221,6 +228,12 @@ Buttons.enable_interrupt(
|
||||||
on_press=True,
|
on_press=True,
|
||||||
on_release=False);
|
on_release=False);
|
||||||
|
|
||||||
|
Buttons.enable_interrupt(
|
||||||
|
Buttons.BTN_Hash,
|
||||||
|
cbButtonHash,
|
||||||
|
on_press=True,
|
||||||
|
on_release=False);
|
||||||
|
|
||||||
vip = True
|
vip = True
|
||||||
aaa = False
|
aaa = False
|
||||||
|
|
||||||
|
@ -238,5 +251,7 @@ while True:
|
||||||
else:
|
else:
|
||||||
n.display([0x000000, 0x000000])
|
n.display([0x000000, 0x000000])
|
||||||
aaa = True
|
aaa = True
|
||||||
|
if not vip:
|
||||||
|
time.sleep(0.1)
|
||||||
else:
|
else:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
Loading…
Reference in New Issue