lvgl / lvgl_esp32_drivers

Drivers for ESP32 to be used with LVGL
MIT License
322 stars 278 forks source link

Unable to use multiple display types. #31

Open cmumford opened 3 years ago

cmumford commented 3 years ago

LVGL supports multiple displays, but lvgl_esp32_drivers will only compile one of the TFT display drivers, and there is no way to enable more than one display via menuconfig. CMakeLists.txt will only build one TFT driver (see source) and lvgl_helpers.c is coupled to the one enabled driver.

Can the configuration be modified to allow multiple enabled drivers? Another option might be to simply enable them all and rely on the linker to leave out the unused drivers.

C47D commented 3 years ago

Hi,

I was working on that but had to solve some other issues. I was thinking on enabling the display controller related code and let the users do the configuration by themselves, as you already know the repo only works with one display in the project.

What displays do you need on your project?

cmumford commented 3 years ago

My main display is a ILI9341, and supplemental is SSD1306.

C47D commented 3 years ago

Ok, we are expecting some updates on the CMakeLists.txt file, so after that I can work on adding support for multiple displays on the project. I have not worked on a multiple-display project, so I would like to ask @kisvegabor and @embeddedt for tips on how can we improve this repo and lv_port_esp32 to support that.