In case it is important, I am trying to replicate the first image on the https://github.com/lvgl/lv_port_esp32 page of a common DOIT ESP32 board and a common ILI9488 display
I have that particular ESP32 board and that particular display.
In the PlatformIO sidebar menu, I chose Project Tasks/Platform/Run Menuconfig and made the following changes using menuconfig:
Component config
LVGL configuration
(320) Maximal horizontal resolution to support by the library.
(240) Maximal vertical resolution to support by the library.
[*] Swap the 2 bytes of RGB565 color. Useful if the display has a 8 bit interface (e.g. SPI).
LVGL TFT Display controller
Display orientation (Landscape)
TFT SPI Bus. (VSPI)
Display Pin Assignments
(23) GPIO for MOSI (Master Out Slave In)
[ ] GPIO for MISO (Master In Slave Out)
(18) GPIO for CLK (SCK / Serial Clock)
[*] Use CS signal to control the display
(5) GPIO for CS (Slave Select)
[*] Use DC signal to control the display
(2) GPIO for DC (Data / Command)
(4) GPIO for Reset
[ ] Enable control of the display backlight by using an GPIO.
I then wired the display to my ESP32 according to the pins listed above, and success!
If you have any questions, I am happy to answer them here.
Ok, got it. The problem is with lvgl_esp_32 drivers, they are not fit for lvgl v8 yet.
Your second link worked directly after changing lovyanggfx defines to M5Stack. Perfect!
(lovyanggfx not popping up in esp-idf’s menuconfig is correct ?)
LVGL has a nice architecture and allows any display+touch driver to be integrated.
So in my sample, I used LovyanGFX since it has autodetect as well, which makes it easy to use unlike the manual driver config required for TFT_eSPI.
You can remove
#define LGFX_WT32_SC01
and enable the line for autodetecting M5Stack.
#define LGFX_AUTODETECT
Source Code line here
Yes, Lovyan is not configured using menuconfig. I can create a kconfig file but there are hardly anything to be configured if you use autodetect.