mdaskalov / esp32-idf-lvgl

Example using LVGL in ESP-IDF project
Apache License 2.0
5 stars 0 forks source link

Display don't show anything, #1

Open devindasrinath opened 10 months ago

devindasrinath commented 10 months ago

Hi,

I followed the given guidelines, built, and uploaded the provided example for the Lilygo T-Watch. I used the provided SDK file and also tried changing the IDF version from 4.4.3 to 4.4.6. However, when I upload the code, the vibration motor starts to vibrate, but the display doesn't show anything. I've encountered the same behavior with the LVGL official ESP IDF library as well.

I would highly appreciate any suggestions or guidance to address this issue.

Thank you, Devinda

mdaskalov commented 10 months ago

You need to configure the correct GPIOs used by your display. I’ve provided an example sdkconfig file for ttgo-t-display which can be used as a starting point. However all CONFIG_LV_DISP_* and CONFIG_LV_TFT_* values should be configured for your display - MISO, CLK, CS, DC, RST, BCLK. If you prefer, the GUI could be used with:

idf.py menuconfig

However I would warmly recommend using Visual Studio Code + PlatformIO for development as the ESP-IDF framework is very complicated and slow. You have to compile about 900+ files each time the project is modified...

For simple drawing I would use the TFT_eSPI library which works with almost any display and is much easier to use. You can check the esp32-tetra project as example. Again the GPIOs should be configured in the platformio.ini file for your display.

And if you really need LVGL I would suggest using Tasmota and Berry - have a look at the AnalogClock project.