Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 7259b7e

Browse files
committed
Optional rebooting screen appglue
1 parent b617e53 commit 7259b7e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

esp32/modules/appglue.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import ugfx, esp, badge, deepsleep
22

3-
def start_app(app):
4-
ugfx.clear(ugfx.WHITE)
5-
ugfx.string(0, 0, "Rebooting..", "PermanentMarker22", ugfx.BLACK)
6-
if (app==""):
7-
ugfx.string(0, 25, "Returning to homescreen...","Roboto_Regular12",ugfx.BLACK)
8-
else:
9-
ugfx.string(0, 25, "Starting "+app+"...","Roboto_Regular12",ugfx.BLACK)
10-
ugfx.set_lut(ugfx.LUT_FASTEST)
11-
ugfx.flush()
3+
def start_app(app, display = True):
4+
if display:
5+
ugfx.clear(ugfx.WHITE)
6+
ugfx.string(0, 0, "Loading...", "PermanentMarker22", ugfx.BLACK)
7+
if app:
8+
ugfx.string(0, 25, "Starting "+app+"...","Roboto_Regular12",ugfx.BLACK)
9+
else:
10+
ugfx.string(0, 25, "Returning to homescreen...","Roboto_Regular12",ugfx.BLACK)
11+
ugfx.flush(ugfx.LUT_FASTEST)
1212
esp.rtcmem_write_string(app)
1313
badge.eink_busy_wait()
1414
deepsleep.reboot()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy