From 109c4395a86c72fb34f820c633a1679590dc8fdb Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 11 Aug 2024 16:43:29 +0200 Subject: Initial commit --- boot.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 boot.py (limited to 'boot.py') diff --git a/boot.py b/boot.py new file mode 100644 index 0000000..e1c58e0 --- /dev/null +++ b/boot.py @@ -0,0 +1,10 @@ +import usb_cdc +usb_cdc.enable(data=True) + +import layout +if layout.check_key(): + print("Key pressed") +else: + import storage + storage.disable_usb_drive() + storage.remount("/", False) -- cgit v1.2.3