Merge pull request #147 from oscitancy/master

+ Added function to exit the Holland app
master
Marek Ventur 2018-09-15 23:23:52 +01:00 committed by GitHub
commit 3c228d161b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -99,6 +99,9 @@ freq = {
"C2": 5322,
}
def cbButtonMenu(button_id):
restart_to_default()
def cbButtonCall(button_id):
sim800.speakervolume(100)
show_screen(0x000000, 0xFFFFFF, "TONE")
@ -156,6 +159,12 @@ def cbButtonHash(button_id):
vip = False
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.BTN_Call,
cbButtonCall,