logo

教程里的lcd是不是无法使用了?

2023-11-26 20:22
B
WIlson

https://book.openmv.cc/shield/lcd.html

# 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
import 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() # Initialize the lcd screen.
#lcd初始化

while(True):
    lcd.display(sensor.snapshot()) # Take a picture and display the image.
    #将图像显示在lcd中
c2e3e2e8-ce47-4024-928d-796761d36c1e.png
2023-11-28 10:45
I
网红小智智 星瞳科技

4.5.0的lcd有bug,建议先用4.4.3的固件。

4.5.1发布后会更新新的例子代码。