Skip to content

Commit 98c2d76

Browse files
authored
Merge pull request SHA2017-badge#173 from SHA2017-badge/updater
Add update all app to firmware
2 parents 8ca8170 + 8b7fee1 commit 98c2d76

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

esp32/modules/update.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import ugfx, woezel, easywifi, easydraw, appglue, time, os
2+
3+
def stop():
4+
time.sleep(2)
5+
appglue.start_app("launcher")
6+
7+
easydraw.msg("Welcome!","Still updating anyway...",True)
8+
9+
10+
if not easywifi.status():
11+
if not easywifi.enable():
12+
stop()
13+
14+
try:
15+
apps = os.listdir('lib')
16+
except OSError:
17+
easydraw.msg("There are no apps installed.")
18+
stop()
19+
20+
for app in apps:
21+
easydraw.msg("Updating '"+app+"'...")
22+
woezel.install(app)
23+
easydraw.msg("Done!")
24+
25+
easydraw.msg("All your apps are now up-to-date!")
26+
stop()

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