GUI Framework for ESP-IDF

wmattias
Posts: 4
Joined: Wed Jun 14, 2023 2:57 pm

GUI Framework for ESP-IDF

Postby wmattias » Sat Jul 01, 2023 2:39 pm

I'm wondering what GUI (for smaller TFT screens) frameworks are available for the ESP32.

I've had a look at LVGL - which seems to have some support through 'https://github.com/lvgl/lv_port_esp32'.
However that driver library seems to be stale/dead: Stuck on an old version (ESP-IDF 4.2) and also very limited recent activity.

I've also looked at more basic libraries (e.g. HAGL) but there are limitations in what screens / driver chips they have drivers for.

Any advice on how to proceed here? Any GUI Frameworks that are well supported on ESP-IDF (including plenty of TFT screen drivers)?

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: GUI Framework for ESP-IDF

Postby ESP_Sprite » Sun Jul 02, 2023 2:02 am

We have lvgl as a component on components.espressif.com, you can simply add that to your project.

wmattias
Posts: 4
Joined: Wed Jun 14, 2023 2:57 pm

Re: GUI Framework for ESP-IDF

Postby wmattias » Mon Jul 03, 2023 2:05 pm

Thanks for the tip!

Found it, tried it, but unfortunately the documentation is very weak so I was unable to get it working.

In the end, I used LVGL as a framework. Added it as a component, then wrote a customer ILI9341 driver and registered it in LVGL. Turned out to be the easiest path forward.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: GUI Framework for ESP-IDF

Postby ESP_igrr » Fri Jul 07, 2023 7:34 pm

In addition to lvgl/lvgl component, there's also an esp_lvgl_port component (https://components.espressif.com/compon ... _lvgl_port) which builds on top of esp_lcd component (https://docs.espressif.com/projects/esp ... s/lcd.html).

I would recommend checking out how these components are used in https://github.com/espressif/esp-bsp. This project has several examples for Espressif development boards which should be relatively easy to adapt.

Who is online

Users browsing this forum: Google [Bot] and 103 guests