跳到主要内容

VisionFive2 开发

本章节包含以下部分,请按需阅读:

硬件连接

将 LCD 模块连接到 VisionFive2 开发板,引脚对应关系如下:

LCDVisionFive2 Board
VCC3.3 V
GNDGND
DIN19
CLK23
CS24
DC22
RST13
BL12

安装依赖库

apt-get install pip
pip install VisionFive.gpio
apt-get install python3-numpy
apt-get install python3-pil

下载示例程序

apt-get install p7zip-full
wget https://www.waveshare.net/w/upload/f/fc/LCD_Module_code.zip
7z x LCD_Module_code.zip -o./LCD_Module_code
cd LCD_Module_code/VisionFive/python/example/

运行示例

进入 VisionFive/python/example/ 目录后,运行 2inch LCD Module 对应的测试程序:

python3 2inch_LCD_test.py