File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
internal_filesystem/lib/mpos Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 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
35import st7789
Original file line number Diff line number Diff line change @@ -74,10 +74,17 @@ def detect_board():
7474fs_drv = lv .fs_drv_t ()
7575mpos .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+
7784prefs = SharedPreferences ("com.micropythonos.settings" )
7885
7986AppearanceManager .init (prefs )
80- init_rootscreen ()
87+ init_rootscreen () # shows the boot logo
8188mpos .ui .topmenu .create_notification_bar ()
8289mpos .ui .topmenu .create_drawer ()
8390mpos .ui .handle_back_swipe ()
@@ -111,12 +118,6 @@ def custom_exception_handler(e):
111118mpos .ui .task_handler .TASK_HANDLER_STARTED = task_handler .TASK_HANDLER_STARTED
112119mpos .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-
120121try :
121122 from mpos .net .wifi_service import WifiService
122123 _thread .stack_size (TaskManager .good_stack_size ())
You can’t perform that action at this time.
0 commit comments