关于pca9685问题
-
按照视频教程修改代码以及连接,运行无报错,但是舵机就是不动
import time from servo import Servos from machine import I2C, Pin i2c = I2C(sda=Pin('P5'), scl=Pin('P4')) servo = Servos(i2c, address=0x40, freq=50, min_us=500, max_us=2500, degrees=180) while True: servo.position(0, 0) time.sleep(500) servo.position(0, 180) time.sleep(500) servo.position(1, 0) time.sleep(500) servo.position(1, 180) time.sleep(500)