Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
from pyb import Servo import time s1 =Servo(1) # servo on position 1 (P7) while(1): s1.angle(50) # move to 45 degrees time.sleep(3) s1.angle(-45) # move to 45 degrees
加了time.sleep(1)舵机就不动了,注释到就又动了 固件是4.1.1最新
好像time.sleep(3)就是3秒
time.sleep 改为time.sleep_ms