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

Commit 5147507

Browse files
committed
Small improvements
1 parent edeac1f commit 5147507

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

esp32/modules/appglue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def start_app(app, display = True):
88
ugfx.string(0, 25, "Starting "+app+"...","Roboto_Regular12",ugfx.BLACK)
99
else:
1010
ugfx.string(0, 25, "Returning to homescreen...","Roboto_Regular12",ugfx.BLACK)
11-
ugfx.flush(ugfx.LUT_FASTEST)
11+
ugfx.flush(ugfx.LUT_FASTER)
1212
esp.rtcmem_write_string(app)
1313
badge.eink_busy_wait()
1414
deepsleep.reboot()

esp32/modules/splash.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@ def set_time_ntp():
1515
else:
1616
return False
1717

18-
# BATTERY
19-
def battery_percent(vbatt):
20-
global battery_volt_min
21-
global battery_volt_max
22-
percent = round(((vbatt-vempty)*100)/(vfull-vempty))
23-
if (percent<0):
24-
percent = 0
25-
elif (percent>100):
26-
percent = 100
27-
return percent
28-
2918
# GRAPHICS
3019
def draw_msg(title, desc):
3120
ugfx.clear(ugfx.WHITE)

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