@kidswong999 我用传感器上的pwm来控制SG90 9g的舵机,然后运行后 舵机一直按一个方向一直转 连续的转 没有时间间隔(openmv4 h7 plus 加 传感器扩展板)
from pyb import Servo
s1 = Servo(1) # servo on position 1 (P7)
while(1):
s1.angle(45) # move to 45 degrees
time.sleep_ms(1000)
s1.angle(-60, 1500) # move to -60 degrees in 1500ms
# s1.speed(50) # for continuous rotation servos