Closed littlebee closed 2 years ago
PWM support may be available on the Jetson Nano based on my brief look at Blinka, @makermelissa is that correct? If so, then it seems like because that library relies on pwmio
you wouldn't be able to use it on that board. :/
Oh, but they're only used for type annotations, so I guess that's what's causing the issue in the Blinka environment.
Looping in @FoamyGuy. We could create a typing.Protocol
to alleviate the issue, but would it be best in the Blinka library? Should we create it in the library itself even though this issue may arise other places? We could try for native Blinka support and fall back on a circuitpython_typing
-based typing.Protocol
that could be added.
I don't have any experience with pwm on Blinka and have never used a jetson nano, so I can't add much to that discussion.
I do think a protocol makes sense if that import is only used for typing though. My first instinct would be to put it into circuitpython_typing
instead of Blinka directly. iirc the type helpers were moved from Blinka into the circuitpython_typing
library so that they could be used by Blinka and in other places needed like this library.
Okay, I think adding a typing.Protocol
there that could actually be imported for typing in a Blinka environment should resolve this. I can get on that.
Whoopsie! Didn't mean to close
Opened an issue for adding the protocol. Once that's merged (or the decision is made to move the protocol into adafruit_motor
) I can write a fix for this!
HI @littlebee, if you upgrade adafruit_motor
to 3.4.0 (now on PyPI), it should fix your problem!
Thank you!!! That totally works. So glad not to have to switch boards!
Hi! I'm trying to get the Adafruit DC & Stepper Motor Bonnet working on a Nvidia Jetson Nano 4Gb using MotorKit.
I followed the instructions for setting up Circuit Python on the Nano. The motor board is connected to the directly to the Nano and powered sepately from the Nano.
I2C shows the two I2C addresses:
When I try to
from adafruit_motorkit import MotorKit
in python3 console, however, I get an error:I additionally tried enabling the PWM pins using jetson-io.py, but that didn't fix the error. My jetson GPIO config looks like:
Thank you for any help!