You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Fix boot and logo showing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user