import sensor, image, time
from pyb import Pin, Timer
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)
clock = time.clock()
def tick(timer):
uart.write(uart)
print("111111")
tim = Timer(4, freq=1)
tim.callback(tick)
while (True):
img = sensor.snapshot()



不要用中断函数,总会有莫名其妙的问题。
那我openmv中需要中断还有其他方法吗