MP-Maix

From ElectroDragon
Jump to navigation Jump to search
with open("hello.py") as f:
    exec(f.read())

Demo code

Sensor and LCD

import sensor
import image
import lcd
 
lcd.init()
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.run(1)
while True:
    img=sensor.snapshot()
    lcd.display(img)