lcd屏幕怎样设置横屏显示
D
dktg
@dktg
0
声望
9
楼层
1101
资料浏览
0
粉丝
1
关注
dktg 发布的帖子
-
运行lcd_1.py后,lcd还是白屏,是什么原因?
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() # Initialize the lcd screen.while(True):
lcd.display(sensor.snapshot()) # Take a picture and display the image. -
写两个串口通信例子。谢谢!
写两个串口通信例子:
1是用openMV写一个发现绿色方块,把方块中心坐标,用串口发给arduino UNO;
2是写一个arduino用串口接受这个坐标的数据的例子。 -
for执行过程是什么?第一次执行什么,第二次执行什么
for blob in img.find_blobs([thresholds[threshold_index]], pixels_threshold=200, area_threshold=200, merge=True):
img.draw_rectangle(blob.rect())
img.draw_cross(blob.cx(), blob.cy())