docs + fs start

This commit is contained in:
Luxferre
2025-12-22 09:05:35 +02:00
parent 6f01d3752b
commit 8fec507cae
4 changed files with 253 additions and 19 deletions
+17
View File
@@ -0,0 +1,17 @@
# deck.fs: FS interaction helpers (WIP)
# Created by Luxferre in 2025, released into public domain
MCU_STORAGE = False
try:
import storage
MCU_STORAGE = True
except:
pass
def unlock_rootfs():
if MCU_STORAGE:
storage.remount("/", readonly=False)
def lock_rootfs():
if MCU_STORAGE:
storage.remount("/", readonly=True)