LVGL ported to ESP32 including various display and touchpad drivers
LVGL ported to ESP32 including various display and touchpad drivers
The lv_esp_idf presents a common way of building LVGL applications on top of the ESP-IDF structure. This project is intended to serve as a references for users that just wanted to dive in the application code while they abstract the project set-up complexities.
The main application will set-up the LVGL, plus the display and touch driver(if any), then it will execute one of the selected LVGL demos such as benchmarking or music demo.
As any ESP-IDF project, this one can support a variety of ESP32 families boards, the user can check the out-of-the-box supported boards by referring the folder manifests.
There are currently two ways of using this repository, via the LVGL Project Creator, or configuring it as regular ESP-IDF project, for the later this documentation will cover the command line method, however the user can set this repo using the Espressif IDE.
First of all you need ESP-IDF.
Clone this repository on your preferred folder.
Set the IDF environment: $ . /path/to/esp-idf/export.sh
Go to this project root: $ cd /path/to/this/repo
Before doing anything please remove the idf_component.yml file on the main folder, this step is valid only when not using the LVGL Project creator.
If user is going to build using one standard board from espressif, add its BSP package (for example for ESP32-P4 EV Function Board):
$ idf.py add-dependency esp32_p4_function_ev_board
Update the components (using IDF set target is one option): $ idf.py set-target esp32s3
Wait the project to set-up.
After setting up this project using either the LVGL Project Creator or the Espressif tools, you should be able to build and flash the application following the steps:
$ . /path/to/esp-idf/export.sh$ idf.py set-target $ idf.py build$ idf.py flash$ idf.py -p flash$ idf.py monitoridf.py -p build flash monitorThe LVGL documentation page has a dedicated section for the Espressif chips integration. If the user wants to get more information about the integration details or tips and tricks about LVGL under Espressif chips visit Espressif section of LVGL documentation.
No open issues yet, or sync has not completed.