About app: add info about freezefs compiled-in filesystem

This commit is contained in:
Thomas Farstrike
2025-10-20 18:31:22 +02:00
parent d68650c644
commit 9048be4d70
3 changed files with 21 additions and 6 deletions
+1
View File
@@ -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
@@ -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)
-2
View File
@@ -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