Is there a way to check if the Adafruit Trinket QT2040's storage device is enabled using the CircuitPython storage library? I have used the storage.disable_usb_drive() and storage.enable_usb_drive() functions in boot.py, but I'm not sure how to check the current status of the storage device in main.py. Thanks
Storage library: https://docs.circuitpython.org/en/lates ... index.html
Checking if USB storage is enabled using CircuitPython
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- MrVolts
- Posts: 1
- Joined: Sat Dec 03, 2022 2:31 pm
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Checking if USB storage is enabled using CircuitPython
If you check the value returned from does that work?
Code: Select all
storage.getmount("CIRCUITPY")
Please be positive and constructive with your questions and comments.