# Servo Control Example
#
# This example shows how to use your OpenMV Cam to control servos.
import time
from pyb import Servo
s1 = Servo(1) # P7
while(True):
for i in range(-90,90):
s1.angle(i)
time.sleep(10)
for i in range(90,-90):
s1.angle(i)
time.sleep(10)
W
wami
@wami
0
声望
1
楼层
249
资料浏览
0
粉丝
0
关注
wami 发布的帖子
-
为什么下面的程序运行后舵机不动?