Comments and output

This commit is contained in:
Thomas Farstrike
2026-02-13 11:08:47 +01:00
parent 78b819d396
commit aa96ca9797
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -9,5 +9,5 @@ class BuildInfo:
class version:
"""Version information."""
release = "0.8.0"
release = "0.8.1"
api_level = 0 # subject to change until API Level 1
+6 -3
View File
@@ -5,7 +5,7 @@ import lvgl as lv
import mpos.ui
import mpos.ui.topmenu
from mpos import AppearanceManager, DisplayMetrics, AppManager, SharedPreferences, TaskManager, DeviceInfo
from mpos import AppearanceManager, AppManager, BuildInfo, DeviceInfo, DisplayMetrics, SharedPreferences, TaskManager
def init_rootscreen():
"""Initialize the root screen and set display metrics."""
@@ -74,8 +74,11 @@ def detect_board():
# default: if single_address_i2c_scan(i2c0, 0x6A): # IMU but currently not installed
return "fri3d_2026"
# EXECUTION STARTS HERE
print(f"MicroPythonOS {BuildInfo.version.release} running lib/mpos/main.py")
board = detect_board()
print(f"Initializing {board} hardware")
print(f"Detected {board} system, importing mpos.board.{board}")
DeviceInfo.set_hardware_id(board)
__import__(f"mpos.board.{board}")
@@ -135,7 +138,7 @@ try:
except Exception as e:
print(f"Couldn't start WifiService.auto_connect thread because: {e}")
# Start launcher so it's always at bottom of stack
# Start launcher first so it's always at bottom of stack
launcher_app = AppManager.get_launcher()
started_launcher = AppManager.start_app(launcher_app.fullname)
# Then start auto_start_app if configured
+1 -2
View File
@@ -5,6 +5,5 @@
import sys
sys.path.insert(0, 'lib')
print("Passing execution over to mpos.main")
print(f"Minimal main.py importing mpos.main with sys.path: {sys.path}")
import mpos.main