2inch Capacitive Touch LCD 配备240 × 320分辨率的电容触摸屏,支持15PIN端子接口或18PIN FPC插槽接入,并提供树莓派、ESP32、Pico、Arduino等的示例资料。



(请保证供电电压和逻辑电压一致,否则会导致无法正常工作)
| 参数名称 | 参数 | 
| 供电电压 | 3.3V/5V | 
| 屏幕类型 | IPS | 
| 通信接口 | Display :SPI | 
| Touch :I2C | |
| 控制芯片 | Display :ST7789T3 | 
| Touch :CST816D | |
| 分辨率 | 240(H) x 320(V) | 
| 显示尺寸 | 30.6 (H) x 40.8 (V) mm | 
| 像素间距 | 0.1275x 0.1275 mm | 
| 产品尺寸 | 37.1(H)x 58.8(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/c/c6/2inch_Capacitive_Touch_LCD_RaspberryPi.zip
sudo apt-get install unzip
unzip 2inch_Capacitive_Touch_LCD_RaspberryPi.zip -d ./2inch_Capacitive_Touch_LCD
cd 2inch_Capacitive_Touch_LCD/Python
python 2inch_Capacitive_Touch_LCD.py
git clone https://github.com/WiringPi/WiringPi cd WiringPi ./build gpio -v
cd wget https://www.waveshare.net/w/upload/a/af/2inch_Capacitive_Touch_LCD_Demo_Pi.zip
sudo apt-get install unzip
unzip 2inch_Capacitive_Touch_LCD_Demo_Pi.zip -d ./2inch_Capacitive_Touch_LCD
cd 2inch_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 | 4 | 
| 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 | 
| 库名称 | 说明 | 库安装要求 | 
|---|---|---|
| LVGL | 图形库 | “离线”安装 | 
| 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 | 
请注意板子的GPIO电平是否与产品的供电电压一致!
周一-周五(9:30-6:30)周六(9:30-5:30)
手机:13434470212
邮箱:services04@spotpear.cn
QQ:202004841