Working with Arduino UNO
Hardware Connection
Use 15PIN jumper wires to connect the module to the Arduino UNO according to the table below:
| LCD Pin | Arduino UNO |
|---|---|
| VCC | 5V |
| 3V3 | NC |
| GND | GND |
| MISO | NC |
| MOSI | D11 |
| SCLK | D13 |
| SD_CS | NC |
| LCD_CS | D10 |
| LCD_DC | D7 |
| LCD_RST | D8 |
| LCD_BL | D9 |
| TP_SDA | SDA |
| TP_SCL | SCL |
| TP_INT | D3 |
| TP_RST | D4 |
Install the Dependent Libraries
- Download and extract the 2inch Capacitive Touch LCD Arduino Examples.
- Copy the
GFX_Library_for_Arduinofolder in the package to the Arduinolibrariesdirectory. This library needs to be installed offline. For detailed methods, please refer to the Arduino Library Management Tutorial.
Run the Example
-
Enter the
2inch_Capacitive_Touch_LCD_Demo_Arduino/2inch_Capacitive_Touch_LCDdirectory. -
Double-click
2inch_Capacitive_Touch_LCD.inoto open the example with the Arduino IDE. -
Select Arduino UNO and the corresponding serial port, then compile and upload the program.

After the program runs, the screen enters the touch drawing board interface.
