Skip to content

Commit 9048be4

Browse files
About app: add info about freezefs compiled-in filesystem
1 parent d68650c commit 9048be4

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Fix KeyPad focus handling for devices without touch screen like the Fri3d Camp 2024 Badge
44
- Use direction arrows for more intuitive navigation instead of B/A or pageup/pagedown for previous/next
55
- About app: enable scrolling using arrow keys so off-screen info can be viewed
6+
- About app: add info about freezefs compiled-in filesystem
67
- AppStore app: don't update UI after the user has closed the app
78
- Launcher app: improve error handling
89
- Wifi app: cleanup and improve keyboard and focus handling

internal_filesystem/builtin/apps/com.micropythonos.about/assets/about.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ def onCreate(self):
1010
screen.set_style_border_width(0, 0)
1111
screen.set_flex_flow(lv.FLEX_FLOW.COLUMN)
1212
screen.set_style_pad_all(mpos.ui.pct_of_display_width(2), 0)
13+
# Make the screen focusable so it can be scrolled with the arrow keys
14+
focusgroup = lv.group_get_default()
15+
if focusgroup:
16+
focusgroup.add_obj(screen)
17+
1318
label0 = lv.label(screen)
1419
label0.set_text(f"Hardware ID: {mpos.info.get_hardware_id()}")
1520
label1 = lv.label(screen)
@@ -45,9 +50,20 @@ def onCreate(self):
4550
label10.set_text(f"machine.reset_cause(): {machine.reset_cause()}")
4651
except Exception as e:
4752
print(f"Additional board info got exception: {e}")
48-
# Make the screen focusable so it can be scrolled with the arrow keys
49-
focusgroup = lv.group_get_default()
50-
if focusgroup:
51-
focusgroup.add_obj(screen)
53+
try:
54+
import freezefs_mount_builtin
55+
label11 = lv.label(screen)
56+
label11.set_text(f"freezefs_mount_builtin.date_frozen: {freezefs_mount_builtin.date_frozen}")
57+
label12 = lv.label(screen)
58+
label12.set_text(f"freezefs_mount_builtin.files_folders: {freezefs_mount_builtin.files_folders}")
59+
label13 = lv.label(screen)
60+
label13.set_text(f"freezefs_mount_builtin.sum_size: {freezefs_mount_builtin.sum_size}")
61+
label14 = lv.label(screen)
62+
label14.set_text(f"freezefs_mount_builtin.version: {freezefs_mount_builtin.version}")
63+
except Exception as e:
64+
# This will throw an exception if there is already a "/builtin" folder present
65+
print("main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
66+
label11 = lv.label(screen)
67+
label11.set_text(f"freezefs_mount_builtin exception (normal on dev builds): {e}")
5268

5369
self.setContentView(screen)

scripts/build_all.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ if [ "$overwrite" != "--overwrite" ] && ls "$outdir"/*"$version"* 2>/dev/null; t
1313
exit 1
1414
fi
1515

16-
exit 0
17-
1816
./scripts/build_lvgl_micropython.sh esp32 prod fri3d-2024
1917
cp "$buildfile" "$outdir"/MicroPythonOS_fri3d-2024_prod_"$version".bin
2018
cp "$updatefile" "$updatesdir"/MicroPythonOS_fri3d-2024_prod_"$version".ota

0 commit comments

Comments
 (0)