https://github.com/mdaskalov/esp32-idf-lvgl
Example using LVGL in ESP-IDF project
https://github.com/mdaskalov/esp32-idf-lvgl
esp-idf esp32 espressif32 lvgl ttgo-t-display
Last synced: over 1 year ago
JSON representation
Example using LVGL in ESP-IDF project
- Host: GitHub
- URL: https://github.com/mdaskalov/esp32-idf-lvgl
- Owner: mdaskalov
- License: apache-2.0
- Created: 2023-03-03T18:10:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T20:52:38.000Z (over 3 years ago)
- Last Synced: 2025-02-28T21:06:37.235Z (over 1 year ago)
- Topics: esp-idf, esp32, espressif32, lvgl, ttgo-t-display
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp32-idf-lvgl
Sample ESP-IDF based project with integrated LVGL
This sample ilustrates the integration of the [lvgl](https://github.com/lvgl/lvgl) graphics library in a project based on the [espressif](https://docs.espressif.com/projects/esp-idf/en/release-v4.4/esp32/index.html) IoT development framework.
It uses the `develop` branch of the display drivers [repo](https://github.com/lvgl/lvgl_esp32_drivers/tree/develop) supportng various display controllers.
As this is still work-in-progres it was dificult to figure out how to properly initialize the display driver for the lvgl library.
To build the project you need to install the ESP-IDF framework:
```
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf; git checkout v4.4.3; git submodule update --init --recursive;
./install.sh
cd ..
```
Then each time a new terminal is opened the framework should be activated:
```
cd esp-idf; . ./export.sh; cd ..
```
There is a sample configuration file `sdkconfig.ttgo-t-display` for TTGO T-Display configured in landscape mode.
You can rename it to `sdkconfig` or configure the drivers library for another device using following command:
```
idf.py menuconfig
```
To build the project execute:
```
idf.py build
```
And to flash the device and monitor the output (press `ctrl-T` and then `ctrl-X` to exit) use:
```
idf.py flash monitor
```