I want to use servo motors and control the speed of DC motors on the Jetson Nano.
from adafruit_servokit import ServoKit # Servo library that works with Jetson import Jetson.GPIO as GPIO # Part of PWM DC motor control GPIO.setmode(GPIO.BOARD) # Error here
Traceback (most recent call last): File "brew.py", line 4, in <module> GPIO.setmode(GPIO.BOARD) File "/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py", line 317, in setmode raise ValueError("A different mode has already been set!") ValueError: A different mode has already been set!
If there are any libraries that are simple to set up like
ServoKit for the PCA9685 board, any easy fixes to have my current code run, or even a way to not use
GPIO.setmode please let me know.