Skip to content

Commit ff6e35d

Browse files
Fix boot and logo showing
1 parent 281c937 commit ff6e35d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

internal_filesystem/lib/mpos/board/waveshare_esp32_s3_touch_lcd_2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
print("waveshare_esp32_s3_touch_lcd_2.py initialization")
13
# Hardware initialization for ESP32-S3-Touch-LCD-2
24
# Manufacturer's website at https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2
35
import st7789

internal_filesystem/lib/mpos/main.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,17 @@ def detect_board():
7474
fs_drv = lv.fs_drv_t()
7575
mpos.fs_driver.fs_register(fs_drv, 'M')
7676

77+
# Needed to load the logo from storage:
78+
try:
79+
import freezefs_mount_builtin
80+
except Exception as e:
81+
# This will throw an exception if there is already a "/builtin" folder present
82+
print("main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
83+
7784
prefs = SharedPreferences("com.micropythonos.settings")
7885

7986
AppearanceManager.init(prefs)
80-
init_rootscreen()
87+
init_rootscreen() # shows the boot logo
8188
mpos.ui.topmenu.create_notification_bar()
8289
mpos.ui.topmenu.create_drawer()
8390
mpos.ui.handle_back_swipe()
@@ -111,12 +118,6 @@ def custom_exception_handler(e):
111118
mpos.ui.task_handler.TASK_HANDLER_STARTED = task_handler.TASK_HANDLER_STARTED
112119
mpos.ui.task_handler.TASK_HANDLER_FINISHED = task_handler.TASK_HANDLER_FINISHED
113120

114-
try:
115-
import freezefs_mount_builtin
116-
except Exception as e:
117-
# This will throw an exception if there is already a "/builtin" folder present
118-
print("main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
119-
120121
try:
121122
from mpos.net.wifi_service import WifiService
122123
_thread.stack_size(TaskManager.good_stack_size())

0 commit comments

Comments
 (0)