sysinfo: make bootstrapped and show exit options

andrejusk/bday
Roger Monk 2018-09-01 13:42:38 +01:00
parent 700ac49199
commit 0c40c9ee1e
1 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,8 @@
___name___ = "System Info"
___license___ = "MIT"
___dependencies___ = ["sleep", "app", "sim800"]
___categories___ = ["EMF"]
___categories___ = ["EMF", "System"]
___bootstrapped___ = True
#import ugfx, os, time, sleep, app, sim800
@ -37,6 +38,9 @@ else:
ugfx.Label(5, 185, 240, 15, simversion)
ugfx.Label(5, 300, 240, 15, "** Hold A or B or MENU to exit **")
while (not Buttons.is_pressed(Buttons.BTN_A)) and (not Buttons.is_pressed(Buttons.BTN_B)) and (not Buttons.is_pressed(Buttons.BTN_Menu)):
ugfx.Label(5, 5, 240, 15, "Temperature (tmp) : {:.2f} C".format(Sensors.get_tmp_temperature()))