3.5inch Capacitive Touch LCD 配备320 × 480分辨率的电容触摸屏,支持15PIN端子接口或18PIN FPC插槽接入,并提供树莓派、ESP32、Pico、Arduino等的示例资料。
(请保证供电电压和逻辑电压一致,否则会导致无法正常工作)
参数名称 | 参数 |
供电电压 | 3.3V/5V |
屏幕类型 | IPS |
通信接口 | Display :SPI |
Touch :I2C | |
控制芯片 | Display :ST7796S |
Touch :FT6336U | |
分辨率 | 320(H) x 480(V) |
显示尺寸 | 48.96 (H) x 73.44 (V) mm |
像素间距 | 0.051 x 0.153mm |
产品尺寸 | 61.00(H)x 92.44(V) mm |
请注意,以下示例通过树莓派4运行
LCD引脚 | 树莓派(BCM) |
VCC | 3.3V |
GND | GND |
MISO | 9 |
MOSI | 10 |
SCLK | 11 |
LCD_CS | 8 |
LCD_DC | 25 |
LCD_RST | 27 |
LCD_BL | 18 |
TP_SDA | 2 |
TP_SCL | 3 |
TP_INT | 4 |
TP_RST | 17 |
sudo raspi-config
sudo raspi-config
sudo reboot
more /boot/config.txt
ls /dev/spi*
sudo apt-get update sudo apt-get install python3-pip sudo apt-get install python3-pil sudo apt-get install python3-numpy sudo apt-get install python3-spidev
cd wget https://www.waveshare.net/w/upload/5/52/3.5inch_Capacitive_Touch_LCD_Demo_Pi.zip
sudo apt-get install unzip
unzip 3.5inch_Capacitive_Touch_LCD_Demo_Pi.zip -d ./3.5inch_Capacitive_Touch_LCD
cd 3.5inch_Capacitive_Touch_LCD/Python
python 3.5inch_Capacitive_Touch_LCD.py
git clone https://github.com/WiringPi/WiringPi cd WiringPi ./build gpio -v
cd wget https://www.waveshare.net/w/upload/5/52/3.5inch_Capacitive_Touch_LCD_Demo_Pi.zip
sudo apt-get install unzip
unzip 3.5inch_Capacitive_Touch_LCD_Demo_Pi.zip -d ./3.5inch_Capacitive_Touch_LCD
cd 3.5inch_Capacitive_Touch_LCD/C
sudo make clean sudo make -j
sudo ./main
LCD引脚 | Raspberry Pi Pico |
VCC | 3.3V |
GND | GND |
MISO | 12 |
MOSI | 11 |
SCLK | 10 |
LCD_CS | 9 |
LCD_DC | 14 |
LCD_RST | 13 |
LCD_BL | 15 |
TP_SDA | 6 |
TP_SCL | 7 |
TP_INT | 8 |
TP_RST | 5 |
1.安装Thonny(Thonny安装包)
2.按住Raspberry Pi Pico的“BOOTSEL”键,然后上电,上电后松开
3.电脑会出现一个新的盘符,将固件(Raspberry Pi Pico固件)解压,并将固件(后缀为uf2)拷贝至该磁盘(拷贝成功磁盘会自动消失)
4.开启Thonny,点击右下方的“Python x.x.x”,选择“Configure interpreter”
5.在弹出窗口中选择“解释器”->解释器选择“MicroPython(Raspbeery Pi Pico)”->端口选择“自动探测端口”
6.点击暂停,Shell窗口出现“MicroPython v1.20.0-50-g786013d46 on 2023-05-04; Raspberry Pi Pico with RP2040 Type "help()" for more information.”即为连接成功
LCD引脚 | ESP32S3 |
VCC | 3.3V |
GND | GND |
MISO | 42 |
MOSI | 2 |
SCLK | 1 |
SD_CS | 38 |
LCD_CS | 39 |
LCD_DC | 41 |
LCD_RST | 40 |
LCD_BL | 6 |
TP_SDA | 15 |
TP_SCL | 7 |
TP_INT | 17 |
TP_RST | 16 |
库名称 | 说明 | 库安装要求 |
---|---|---|
GFX_Library_for_Arduino | LCD驱动库 | “离线”安装 |
LCD引脚 | Arduino |
VCC | 5V |
GND | GND |
MISO | NC |
MOSI | 11 |
SCLK | 13 |
LCD_CS | 10 |
LCD_DC | 7 |
LCD_RST | 8 |
LCD_BL | 9 |
TP_SDA | SDA |
TP_SCL | SCL |
TP_INT | 3 |
TP_RST | 4 |
库名称 | 说明 | 库安装要求 |
---|---|---|
GFX_Library_for_Arduino | LCD驱动库 | “离线”安装 |
请注意板子的GPIO电平是否与产品的供电电压一致!
周一-周五(9:30-6:30)周六(9:30-5:30)
手机:13434470212
邮箱:services04@spotpear.cn
QQ:202004841