知道了,把SLEEP改成SLEEP_MS
Q
qv4a
@qv4a
0
声望
3
楼层
242
资料浏览
0
粉丝
0
关注
qv4a 发布的帖子
-
为什么我的舵机只动一下就不动了?买的是您们的云台。
请在这里粘贴代码
Servo Control Example
This example shows how to use your OpenMV Cam to control servos.
import time
from pyb import Servos1 = Servo(1) # P7
s2 = Servo(2) # P8
while(True):
for i in range(0,90):
s1.angle(i)
# s2.angle(i)
time.sleep(100)
for i in range(90,0):
s1.angle(i)
# s2.angle(i)
time.sleep(100)