+ Added function to exit app
parent
49125fc3d2
commit
1a4b656270
|
@ -98,6 +98,9 @@ freq = {
|
||||||
"B": 4938,
|
"B": 4938,
|
||||||
"C2": 5322,
|
"C2": 5322,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def cbButtonMenu(button_id):
|
||||||
|
restart_to_default()
|
||||||
|
|
||||||
def cbButtonCall(button_id):
|
def cbButtonCall(button_id):
|
||||||
sim800.speakervolume(100)
|
sim800.speakervolume(100)
|
||||||
|
@ -155,6 +158,12 @@ def cbButtonHash(button_id):
|
||||||
global vip
|
global vip
|
||||||
vip = False
|
vip = False
|
||||||
ugfx.display_image(0, 0, "holland/brenno.png")
|
ugfx.display_image(0, 0, "holland/brenno.png")
|
||||||
|
|
||||||
|
Buttons.enable_interrupt(
|
||||||
|
Buttons.BTN_Menu,
|
||||||
|
cbButtonMenu,
|
||||||
|
on_press=True,
|
||||||
|
on_release=False);
|
||||||
|
|
||||||
Buttons.enable_interrupt(
|
Buttons.enable_interrupt(
|
||||||
Buttons.BTN_Call,
|
Buttons.BTN_Call,
|
||||||
|
|
Loading…
Reference in New Issue