parent
d36c79ccd9
commit
8d064986ac
28
boot.py
28
boot.py
|
@ -1,16 +1,16 @@
|
||||||
# from board import *
|
from board import *
|
||||||
# import digitalio
|
import digitalio
|
||||||
# import storage
|
import storage
|
||||||
|
|
||||||
# noStorageStatus = False
|
noStorageStatus = False
|
||||||
# noStoragePin = digitalio.DigitalInOut(GP0)
|
noStoragePin = digitalio.DigitalInOut(GP15)
|
||||||
# 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 == False):
|
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")
|
||||||
# else:
|
else:
|
||||||
# # normal boot
|
# normal boot
|
||||||
# print("USB drive enabled")
|
print("USB drive enabled")
|
||||||
|
|
Loading…
Reference in New Issue