Closed
Description
Hi,
While using the PCA9685 board with NVIDIA Jetson Nano through I2C I get a mysterious error while trying to run a simple example:
import busio
import board
from adafruit_servokit import ServoKit
i2c_bus0=(busio.I2C(board.SCL_1, board.SDA_1))
kit = ServoKit(channels=16, i2c=i2c_bus0)
kit.servo[0].angle = 180
Running this code leads to the following error:
Traceback (most recent call last):
File "servo_test.py", line 10, in <module>
kit.servo[0].angle = 180
File "/home/belovictor/.local/lib/python3.6/site-packages/adafruit_servokit.py", line 140, in __getitem__
import adafruit_motor.servo # pylint: disable=import-outside-toplevel
File "/home/belovictor/.local/lib/python3.6/site-packages/adafruit_motor/servo.py", line 18, in <module>
from pwmio import PWMOut
File "/home/belovictor/.local/lib/python3.6/site-packages/pwmio.py", line 45, in <module>
raise NotImplementedError("pwmio not supported for this board.")
NotImplementedError: pwmio not supported for this board.
Exiting...
Cleaning up pins
This looks weird as it should not depend on the availability of PWM pins on the Jetson board?
I have the following versions of Adafruit libraries installed on Jetson, all installed through pip:
adafruit-circuitpython-servokit (1.3.6)
adafruit-circuitpython-pca9685 (3.3.9)
adafruit-circuitpython-motor (3.3.2)
Adafruit-Blinka (6.15.0)
Thanks in advance
Metadata
Metadata
Assignees
Labels
No labels