aboutsummaryrefslogtreecommitdiff
path: root/boot.py
diff options
context:
space:
mode:
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)