Skip to main content

Working with ESP32-S3

Hardware Connection​

Use 15PIN jumper wires to connect the module to the ESP32-S3 according to the table below:

LCD PinESP32-S3
VCCNC
3V33V3
GNDGND
MISOGPIO 42
MOSIGPIO 2
SCLKGPIO 1
SD_CSGPIO 38
LCD_CSGPIO 39
LCD_DCGPIO 41
LCD_RSTGPIO 40
LCD_BLGPIO 6
TP_SDAGPIO 15
TP_SCLGPIO 7
TP_INTGPIO 17
TP_RSTGPIO 16

Configure the Arduino IDE​

  1. Install the Arduino IDE and Arduino ESP32 Core according to the Installing and Configuring the Arduino IDE.

    Arduino IDE download page

  2. Download and extract the 2inch Capacitive Touch LCD ESP32-S3 Examples.

  3. Install the GFX_Library_for_Arduino library in the example package into the Arduino IDE. This library needs to be installed offline. For detailed methods, please refer to the library management section in the Arduino IDE tutorial above.

Arduino IDE Basics​

If you have not yet compiled and uploaded an ESP32-S3 program using the Arduino IDE, you can check the development environment with the following test program:

  1. Select "File" > "New Sketch" to create a new project:

    Create a new project in the Arduino IDE

  2. Enter the following code, and select "File" > "Save As" to save the project:

    void setup() {
    Serial.begin(115200);
    }

    void loop() {
    Serial.println("Hello, World!");
    delay(2000);
    }

    Save Arduino ESP32-S3 Test Project

  3. Select "ESP32S3 Dev Module" and the serial port corresponding to the development board:

    Select the ESP32-S3 board and serial port in the Arduino IDE

  4. If the development board only provides a native USB interface, set "USB CDC On Boot" to "Enabled" in the "Tools" menu:

    Enable USB CDC On Boot in the Arduino IDE

  5. Compile and upload the program. After the upload is complete, the Arduino IDE output window will show a reset prompt:

    Arduino ESP32-S3 Test Program Uploaded Successfully

  6. Open the serial monitor and set the baud rate to 115200. The serial monitor outputs Hello, World! every 2 seconds:

    Serial Output of the Arduino ESP32-S3 Test Program

Run the Example​

  1. Use the Arduino IDE to open the 2inch_Capacitive_Touch_LCD_Demo_ESP32S3/2inch_Capacitive_Touch_LCD example.

    Open the 2inch Capacitive Touch LCD ESP32-S3 example in the Arduino IDE

  2. Select the development board model and serial port according to the ESP32-S3 development board you are actually using, and adjust the pin configuration in the example according to the development board's resources.

    Configure the board options for the 2inch Capacitive Touch LCD ESP32-S3 example

  3. If the development board only provides a native USB interface, enable "USB CDC On Boot" in the Arduino IDE.

  4. Compile and upload the program.

    2inch Capacitive Touch LCD ESP32-S3 example uploaded successfully

After the program runs, the screen enters the touch drawing board interface. Open the serial monitor to also view the TF card capacity recognized by the program.

2inch Capacitive Touch LCD ESP32-S3 Example Serial Output