mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
18 lines
346 B
Python
18 lines
346 B
Python
import lcd, sensor, time
|
|
lcd.init()
|
|
lcd.clear(0x00)
|
|
|
|
sensor.reset()
|
|
sensor.set_contrast(2)
|
|
sensor.set_brightness(0)
|
|
sensor.set_saturation(2)
|
|
sensor.set_pixformat(sensor.RGB565)
|
|
sensor.set_framesize(sensor.QQVGA2)
|
|
|
|
clock = time.clock()
|
|
while (True):
|
|
clock.tick()
|
|
image = sensor.snapshot()
|
|
lcd.write_image(image)
|
|
print(clock.fps())
|