From c31148f482adf44ded7cec1d683e01d995294850 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 20 Jul 2025 15:26:58 +0200 Subject: Added some tests, and a handle commands in the json (only 'layer' for now) --- boot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'boot.py') diff --git a/boot.py b/boot.py index e1c58e0..3f2dfb2 100644 --- a/boot.py +++ b/boot.py @@ -2,9 +2,12 @@ import usb_cdc usb_cdc.enable(data=True) import layout +import storage if layout.check_key(): print("Key pressed") + storage.remount("/", readonly=False) + storage.enable_usb_drive() else: - import storage + # Remount in read only + storage.remount("/", readonly=True) storage.disable_usb_drive() - storage.remount("/", False) -- cgit v1.2.3