Fix boot and logo showing

This commit is contained in:
Thomas Farstrike
2026-01-24 22:11:09 +01:00
parent 281c93739d
commit ff6e35de24
2 changed files with 10 additions and 7 deletions
@@ -1,3 +1,5 @@
print("waveshare_esp32_s3_touch_lcd_2.py initialization")
# Hardware initialization for ESP32-S3-Touch-LCD-2
# Manufacturer's website at https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2
import st7789
+8 -7
View File
@@ -74,10 +74,17 @@ import mpos.fs_driver
fs_drv = lv.fs_drv_t()
mpos.fs_driver.fs_register(fs_drv, 'M')
# Needed to load the logo from storage:
try:
import freezefs_mount_builtin
except Exception as e:
# This will throw an exception if there is already a "/builtin" folder present
print("main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
prefs = SharedPreferences("com.micropythonos.settings")
AppearanceManager.init(prefs)
init_rootscreen()
init_rootscreen() # shows the boot logo
mpos.ui.topmenu.create_notification_bar()
mpos.ui.topmenu.create_drawer()
mpos.ui.handle_back_swipe()
@@ -111,12 +118,6 @@ else:
mpos.ui.task_handler.TASK_HANDLER_STARTED = task_handler.TASK_HANDLER_STARTED
mpos.ui.task_handler.TASK_HANDLER_FINISHED = task_handler.TASK_HANDLER_FINISHED
try:
import freezefs_mount_builtin
except Exception as e:
# This will throw an exception if there is already a "/builtin" folder present
print("main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
try:
from mpos.net.wifi_service import WifiService
_thread.stack_size(TaskManager.good_stack_size())