VisionFive2 开发
本章节包含以下部分,请按需阅读:
硬件连接
将 LCD 模块连接到 VisionFive2 开发板,引脚对应关系如下:
| LCD | VisionFive2 Board |
|---|---|
| VCC | 3.3 V |
| GND | GND |
| DIN | 19 |
| CLK | 23 |
| CS | 24 |
| DC | 22 |
| RST | 13 |
| BL | 12 |
安装依赖库
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/ 目录后,运行 1.3inch LCD Module 对应的测试程序:
python3 1inch3_LCD_test.py