From 9048be4d705d43400dc402cb0f85c78ccdd2e76c Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Mon, 20 Oct 2025 18:31:22 +0200 Subject: [PATCH] About app: add info about freezefs compiled-in filesystem --- CHANGELOG.md | 1 + .../com.micropythonos.about/assets/about.py | 24 +++++++++++++++---- scripts/build_all.sh | 2 -- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b784f8c2..e091b08f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Fix KeyPad focus handling for devices without touch screen like the Fri3d Camp 2024 Badge - Use direction arrows for more intuitive navigation instead of B/A or pageup/pagedown for previous/next - About app: enable scrolling using arrow keys so off-screen info can be viewed +- About app: add info about freezefs compiled-in filesystem - AppStore app: don't update UI after the user has closed the app - Launcher app: improve error handling - Wifi app: cleanup and improve keyboard and focus handling diff --git a/internal_filesystem/builtin/apps/com.micropythonos.about/assets/about.py b/internal_filesystem/builtin/apps/com.micropythonos.about/assets/about.py index 3feaebba..4080741b 100644 --- a/internal_filesystem/builtin/apps/com.micropythonos.about/assets/about.py +++ b/internal_filesystem/builtin/apps/com.micropythonos.about/assets/about.py @@ -10,6 +10,11 @@ class About(Activity): screen.set_style_border_width(0, 0) screen.set_flex_flow(lv.FLEX_FLOW.COLUMN) screen.set_style_pad_all(mpos.ui.pct_of_display_width(2), 0) + # Make the screen focusable so it can be scrolled with the arrow keys + focusgroup = lv.group_get_default() + if focusgroup: + focusgroup.add_obj(screen) + label0 = lv.label(screen) label0.set_text(f"Hardware ID: {mpos.info.get_hardware_id()}") label1 = lv.label(screen) @@ -45,9 +50,20 @@ class About(Activity): label10.set_text(f"machine.reset_cause(): {machine.reset_cause()}") except Exception as e: print(f"Additional board info got exception: {e}") - # Make the screen focusable so it can be scrolled with the arrow keys - focusgroup = lv.group_get_default() - if focusgroup: - focusgroup.add_obj(screen) + try: + import freezefs_mount_builtin + label11 = lv.label(screen) + label11.set_text(f"freezefs_mount_builtin.date_frozen: {freezefs_mount_builtin.date_frozen}") + label12 = lv.label(screen) + label12.set_text(f"freezefs_mount_builtin.files_folders: {freezefs_mount_builtin.files_folders}") + label13 = lv.label(screen) + label13.set_text(f"freezefs_mount_builtin.sum_size: {freezefs_mount_builtin.sum_size}") + label14 = lv.label(screen) + label14.set_text(f"freezefs_mount_builtin.version: {freezefs_mount_builtin.version}") + 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) + label11 = lv.label(screen) + label11.set_text(f"freezefs_mount_builtin exception (normal on dev builds): {e}") self.setContentView(screen) diff --git a/scripts/build_all.sh b/scripts/build_all.sh index 77568703..0439171b 100755 --- a/scripts/build_all.sh +++ b/scripts/build_all.sh @@ -13,8 +13,6 @@ if [ "$overwrite" != "--overwrite" ] && ls "$outdir"/*"$version"* 2>/dev/null; t exit 1 fi -exit 0 - ./scripts/build_lvgl_micropython.sh esp32 prod fri3d-2024 cp "$buildfile" "$outdir"/MicroPythonOS_fri3d-2024_prod_"$version".bin cp "$updatefile" "$updatesdir"/MicroPythonOS_fri3d-2024_prod_"$version".ota