2022-04-26 19:33:41 +00:00
|
|
|
# from board import *
|
|
|
|
# import digitalio
|
|
|
|
# import storage
|
2022-04-22 17:00:31 +00:00
|
|
|
|
2022-04-26 19:33:41 +00:00
|
|
|
# noStorageStatus = False
|
|
|
|
# noStoragePin = digitalio.DigitalInOut(GP0)
|
|
|
|
# noStoragePin.switch_to_input(pull=digitalio.Pull.UP)
|
|
|
|
# noStorageStatus = not noStoragePin.value
|
2022-04-22 17:00:31 +00:00
|
|
|
|
2022-04-26 19:33:41 +00:00
|
|
|
# if(noStorageStatus == False):
|
|
|
|
# # don't show USB drive to host PC
|
|
|
|
# storage.disable_usb_drive()
|
|
|
|
# print("Disabling USB drive")
|
|
|
|
# else:
|
|
|
|
# # normal boot
|
|
|
|
# print("USB drive enabled")
|