Supported ESP SoCs | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 | ESP32-P4 |
---|
This example demonstrates how to statically load the display screen settings of development boards through esp_panel_board_supported_conf.h
and esp_panel_board_custom_conf.h
configuration files, and verify the configuration by displaying color bars and monitoring touch coordinates.
-
Install the following SDK and library dependencies:
- See SDK & Dependencies and Installing Libraries sections for more information
-
[Mandatory]
ESP32_Display_Panel
:-
This example already has the esp_panel_board_supported_conf.h and esp_panel_board_custom_conf.h configuration files in the project directory. But no board configuration enabled by default, before compiling, please edit the configuration file according to your target board:
- If using a supported board, edit the esp_panel_board_supported_conf.h file and set
ESP_PANEL_BOARD_DEFAULT_USE_SUPPORTED
to1
. Then uncomment the target board definition in the file - If using a custom board, edit the esp_panel_board_custom_conf.h file and set
ESP_PANEL_BOARD_DEFAULT_USE_CUSTOM
to1
. Then change other configurations as needed in the file
- If using a supported board, edit the esp_panel_board_supported_conf.h file and set
-
This example already has the esp_panel_drivers_conf.h configuration file in the project directory. Edit this file as needed.
-
see Board Configuration Guide for more information
-
-
[Optional]
esp-lib-utils
:- This example already has the esp_utils_conf.h configuration file in the project directory. Edit this file as needed
- See Configuring esp-lib-utils section for more information
- [Optional] Edit the macro definitions in the board_static_config.ino file
- Navigate to the
Tools
menu - Select the target board in the
Board
menu - Change the
PSRAM
option toOPI PSRAM
if usingESP32S3R8 + RGB LCD
, orEnabled
if usingESP32P4 + MIPI-DSI LCD
- Change the
USB CDC On Boot
option toEnabled
if usingUSB
port, orDisabled
if usingUART
port. If this configuration differs from previous flashing, first enableErase All Flash Before Sketch Upload
, then it can be disabled after flashing. - Change other configurations as needed
- see Configuring Arduino IDE for more information
- Connect the board to your computer
- Select the correct serial port
- Click the
upload
button
- Open the serial monitor and select the correct baud rate (like
115200
) - Check the output logs
The following are the logs output when using the Espressif:ESP32_S3_LCD_EV_BOARD_2_V1_5
development board. The logs content may vary with different development boards or different configurations, and it is provided for reference only.
...
Initializing board with default config
[I][Panel][esp_panel_board.cpp:0066](init): Initializing board (Espressif:ESP32_S3_LCD_EV_BOARD_2_V1_5)
[I][Panel][esp_panel_board.cpp:0235](init): Board initialize success
[I][Panel][esp_panel_board.cpp:0253](begin): Beginning board (Espressif:ESP32_S3_LCD_EV_BOARD_2_V1_5)
[I][Panel][esp_lcd_touch_gt1151.c:0050](esp_lcd_touch_new_i2c_gt1151): version: 1.0.5
[I][Panel][esp_lcd_touch_gt1151.c:0234](read_product_id): IC version: GT1158_000101(Patch)_0102(Mask)_00(SensorID)
[I][Panel][esp_panel_board.cpp:0459](begin): Board begin success
Backlight is not available
Testing LCD
Draw color bar from top to bottom, the order is B - G - R
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
LCD draw finish callback
Testing Touch
Reading touch points...
Touch point(0): x 103, y 58, strength 45
Touch point(0): x 103, y 58, strength 45
LCD FPS: 31
...
Please check the FAQ first to see if the same question exists. If not, please create a Github Issue. We will get back to you as soon as possible.