From 0c40c9ee1e137c0658534e2ca6763dc862b1262f Mon Sep 17 00:00:00 2001 From: Roger Monk Date: Sat, 1 Sep 2018 13:42:38 +0100 Subject: [PATCH] sysinfo: make bootstrapped and show exit options --- sysinfo/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sysinfo/main.py b/sysinfo/main.py index cb325ae..54e53c4 100644 --- a/sysinfo/main.py +++ b/sysinfo/main.py @@ -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()))