aboutsummaryrefslogtreecommitdiff
path: root/boot.py
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2024-08-11 16:43:29 +0200
committerSébastien Dailly <sebastien@dailly.me>2024-08-11 16:43:29 +0200
commit109c4395a86c72fb34f820c633a1679590dc8fdb (patch)
tree7f6f405b9e4d4bf6b1650f65d4b9e40fcdbe3f83 /boot.py
Initial commitmain
Diffstat (limited to 'boot.py')
-rw-r--r--boot.py10
1 files changed, 10 insertions, 0 deletions
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)