Skip to main content

Working with Arduino UNO

Hardware Connection​

Use 15PIN jumper wires to connect the module to the Arduino UNO according to the table below:

LCD PinArduino UNO
VCC5V
3V3NC
GNDGND
MISONC
MOSID11
SCLKD13
SD_CSNC
LCD_CSD10
LCD_DCD7
LCD_RSTD8
LCD_BLD9
TP_SDASDA
TP_SCLSCL
TP_INTD3
TP_RSTD4

Install the Dependent Libraries​

  1. Download and extract the 2inch Capacitive Touch LCD Arduino Examples.
  2. Copy the GFX_Library_for_Arduino folder in the package to the Arduino libraries directory. This library needs to be installed offline. For detailed methods, please refer to the Arduino Library Management Tutorial.

Run the Example​

  1. Enter the 2inch_Capacitive_Touch_LCD_Demo_Arduino/2inch_Capacitive_Touch_LCD directory.

  2. Double-click 2inch_Capacitive_Touch_LCD.ino to open the example with the Arduino IDE.

  3. Select Arduino UNO and the corresponding serial port, then compile and upload the program.

    Compile the 2inch Capacitive Touch LCD Arduino UNO example in the Arduino IDE

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

2inch Capacitive Touch LCD Arduino UNO example upload complete