diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2024-08-11 16:43:29 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2024-08-11 16:43:29 +0200 |
commit | 109c4395a86c72fb34f820c633a1679590dc8fdb (patch) | |
tree | 7f6f405b9e4d4bf6b1650f65d4b9e40fcdbe3f83 /boot.py |
Initial commitmain
Diffstat (limited to 'boot.py')
-rw-r--r-- | boot.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |