import sensor
import display
sensor.reset() # Initialize the camera sensor.
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
sensor.set_framesize(sensor.QQVGA2) # Special 128x160 framesize for LCD Shield.
lcd = display.SPIDisplay() # Initialize the lcd screen.
while True:
lcd.write(sensor.snapshot()) # Take a picture and display the image.
貌似删了注册表的东西,重装ide也一样报错。
https://forum.singtown.com/topic/10600/%E6%B8%85%E6%B3%A8%E5%86%8C%E8%A1%A8%E5%A5%BD%E5%83%8F%E8%AF%AF%E5%88%A0%E4%BA%86openmv%E7%9A%84%E4%B8%9C%E8%A5%BF-%E7%8E%B0%E5%9C%A8%E5%AE%98%E6%96%B9%E4%BE%8B%E7%A8%8B%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C/2