Closed todbot closed 6 months ago
Looks like I hadn't done lint over the library. Would you mind doing it? pre-commit can help: https://learn.adafruit.com/improve-your-code-with-pylint
One of the remaining problems is Sphinx is failing with
autodoc: failed to import module 'adafruit_usb_host_midi'; the following exception was raised:
No module named 'usb'
I had to add import usb.core
to get usb.core.USBTimeoutError
. And Adafruit-Blinka
doesn't have a fakey usb
module I guess?
Hmm, okay well I added two dependencies to requirements.txt
:
adafruit-circuitpython-usb-host-descriptors
pyusb
I assume requirements.txt
is only used in CPython and not circup
?
I assume
requirements.txt
is only used in CPython and notcircup
?
I'm not sure exactly how it'll interact with circup. I think this is right for CPython.
Thanks for fixing everything up!
Adds a timeout property on the constructor that is used when doing
usb.core.Device.read()
s, so devices can be read in a non-blocking fashion. Also adds an example for use on the Feather RP2040 with USB Type A Host.