在做舵机实验时帧缓冲区好像被禁用了,请问可以打开吗?
-
舵机控制例子
这个例子展示了如何使用OpenMV来控制舵机
import time
from pyb import Servos1 = Servo(1) # P7
s2 = Servo(2) # P8
s3 = Servo(3) # P9while(True):
for i in range(1000):
s1.pulse_width(1000 + i)
s2.pulse_width(1999 - i)
s3.pulse_width(1000 + i)
time.sleep(10)
for i in range(1000):
s1.pulse_width(1999 - i)
s2.pulse_width(1000 + i)
s3.pulse_width(1999 - i)
time.sleep(10)
-
你都没用到图像,谈不上禁用不禁用的。