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最新
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最新