The example demonstrates how to port SquareLine (v1.3.x) project. And for RGB LCD, it can enable the avoid tearing function.
To use this example, please firstly install the following dependent libraries:
- lvgl (>= v8.3.9, < v9)
Then follow the steps below to configure:
-
For ESP32_Display_Panel:
- Configure drivers if needed.
- If using a supported development board, follow the steps to configure it.
- If using a custom board, follow the steps to configure it.
-
For lvgl:
- Follow the steps to add lv_conf.h file and change the configurations.
- Modify the macros in the lvgl_port_v8.h file to configure the LVGL porting parameters.
-
To directly use the example, please copy the ui folder from
libraries
to Arduino Library directory. What's more, you can follow the steps to port your own SquareLine project. -
Navigate to the
Tools
menu in the Arduino IDE to choose a ESP board and configure its parameters. For supported boards, please refter to Configuring Supported Development Boards -
Verify and upload the example to your ESP board.
...
Squareline porting example start
Initialize panel device
Initialize LVGL
Create UI
Squareline porting example end
IDLE loop
IDLE loop
IDLE loop
...
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.