Added boot up dev option via button press
Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>master
parent
8e946be0af
commit
ff93288428
2
boot.py
2
boot.py
|
@ -7,7 +7,7 @@ noStoragePin = digitalio.DigitalInOut(GP0)
|
||||||
noStoragePin.switch_to_input(pull=digitalio.Pull.UP)
|
noStoragePin.switch_to_input(pull=digitalio.Pull.UP)
|
||||||
noStorageStatus = not noStoragePin.value
|
noStorageStatus = not noStoragePin.value
|
||||||
|
|
||||||
if(noStorageStatus == True):
|
if(noStorageStatus == False):
|
||||||
# don't show USB drive to host PC
|
# don't show USB drive to host PC
|
||||||
storage.disable_usb_drive()
|
storage.disable_usb_drive()
|
||||||
print("Disabling USB drive")
|
print("Disabling USB drive")
|
||||||
|
|
Loading…
Reference in New Issue