Added all files

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-04-22 19:00:31 +02:00
parent 852cb815b2
commit 221901e98c
11 changed files with 22 additions and 2 deletions

7
.gitignore vendored
View File

@ -15,8 +15,6 @@ dist/
downloads/ downloads/
eggs/ eggs/
.eggs/ .eggs/
lib/
lib64/
parts/ parts/
sdist/ sdist/
var/ var/
@ -138,3 +136,8 @@ dmypy.json
# Cython debug symbols # Cython debug symbols
cython_debug/ cython_debug/
boot_out.txt
.metadata_never_index
/System Volume Information
.fseventsd
.Trashes

16
boot.py 100644
View File

@ -0,0 +1,16 @@
from board import *
import digitalio
import storage
noStorageStatus = False
noStoragePin = digitalio.DigitalInOut(GP15)
noStoragePin.switch_to_input(pull=digitalio.Pull.UP)
noStorageStatus = not noStoragePin.value
if(noStorageStatus == True):
# don't show USB drive to host PC
storage.disable_usb_drive()
print("Disabling USB drive")
else:
# normal boot
print("USB drive enabled")

1
code.py 100644
View File

@ -0,0 +1 @@
print("Hello World!")

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.