MP-Maix

From ElectroDragon Wiki
Revision as of 16:41, 9 April 2021 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)