Skip to content

Commit 91ee937

Browse files
committed
Allow services to draw on homescreen
1 parent 317166b commit 91ee937

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

esp32/modules/launcher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ def populate_it():
3535

3636
for app in apps:
3737
options.add_item(app)
38+
39+
options.add_item('setup')
40+
options.add_item('sponsors')
41+
3842

3943
def run_it(pushed):
4044
if (pushed):

esp32/modules/splash.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ def loop_services(loopCnt):
4545
except BaseException as msg:
4646
print("[SPLASH] Service loop exception: ", msg)
4747
return noSleep
48+
49+
def draw_services():
50+
noSleep = False
51+
global services
52+
x = 0
53+
y = ugfx.height() - 14
54+
for srv in services:
55+
try:
56+
space_used = srv.draw(x,y)
57+
if (space_used>0):
58+
y = y - abs(space_used)
59+
except BaseException as msg:
60+
print("[SPLASH] Service draw exception: ", msg)
4861

4962
# RTC
5063

@@ -198,7 +211,8 @@ def draw_home(percent, cstate, status, full_clear, going_to_sleep):
198211
else:
199212
info = "[ START: LAUNCHER ]"
200213
draw_helper_footer(clockstring(),info)
201-
draw_helper_nick(":(")
214+
draw_helper_nick("Unknown")
215+
draw_services()
202216
draw_helper_flush(True)
203217

204218
def draw_batterylow(percent):

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