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) while (1): s1.angle(90) time.sleep(500) s1.angle(45) time.sleep(500) s1.angle(0) time.sleep(500)
time.sleep(500) 改为time.sleep(0.5)