diff --git a/internal_filesystem/lib/mpos/board/waveshare_esp32_s3_touch_lcd_2.py b/internal_filesystem/lib/mpos/board/waveshare_esp32_s3_touch_lcd_2.py index a09c8cb8..6b607083 100644 --- a/internal_filesystem/lib/mpos/board/waveshare_esp32_s3_touch_lcd_2.py +++ b/internal_filesystem/lib/mpos/board/waveshare_esp32_s3_touch_lcd_2.py @@ -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 diff --git a/internal_filesystem/lib/mpos/main.py b/internal_filesystem/lib/mpos/main.py index 742b5915..ad2332cc 100644 --- a/internal_filesystem/lib/mpos/main.py +++ b/internal_filesystem/lib/mpos/main.py @@ -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())