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).
#import sensor, image, time
from pyb import Servo import time
s1 = Servo(1) # servo on position 1 (P7)
while(1): s1.angle(45) # move to 45 degrees time.sleep(600) s1.angle(90) time.sleep(600)
time.sleep
改成time.sleep_ms