# LCD Example
#
# Note: To run this example you will need a LCD Shield for your OpenMV Cam.
#
# The LCD Shield allows you to view your OpenMV Cam's frame buffer on the go.
import sensor, image, lcd
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.init(1,128,160,framesize=lcd.FWVGA,60) # Initialize the lcd screen.
lcd.init(1, 128, height=160, framesize=0, refresh=30, triple_buffer=False, bgr=False)
while(True):
lcd.display(sensor.snapshot()) # Take a picture and display the image.
mv-lcd初始化
最新推荐文章于 2023-12-30 22:27:41 发布