Hello
In the Arduino IDE I’m able to compile the LVGL example.
But not in PlatformIO Does someone knows a github link what is working.
I use ESP-Wrover-Kit 4.1
I have an LVGL demo on a Lilygo S3 running
Most of the LVGL stuff had to be done via the platformio.ini file
[env:lilygo-t-display-s3]
platform = espressif32
board = lilygo-t-display-s3
framework = arduino
monitor_speed = 115200
monitor_rts = 0
monitor_dtr = 0
lib_deps =
esphome/AsyncTCP-esphome@^1.2.2
esphome/ESPAsyncWebServer-esphome@^2.1.0
igorantolic/Ai Esp32 Rotary Encoder@^1.4
bodmer/TFT_eSPI@^2.5.0
lvgl/lvgl@^8.3.6
build_flags =
-D LV_CONF_INCLUDE_SIMPLE
-I src
-D USER_SETUP_LOADED=1
-D ST7789_DRIVER=1
-D CGRAM_OFFSET=1
-D TFT_RGB_ORDER=TFT_BGR
-D TFT_INVERSION_ON=1
-D TFT_PARALLEL_8_BIT=1
-D TFT_WIDTH=170
-D TFT_HEIGHT=320
-D TFT_DC=7
-D TFT_RST=5
-D TFT_WR=8
-D TFT_RD=9
-D TFT_D0=39
-D TFT_D1=40
-D TFT_D2=41
-D TFT_D3=42
-D TFT_D4=45
-D TFT_D5=46
-D TFT_D6=47
-D TFT_D7=48
-D TFT_BL=38
-D TFT_BACKLIGHT_ON=HIGH
-D LOAD_GLCD=1
-D LOAD_FONT2=1
-D LOAD_FONT4=1
-D LOAD_FONT6=1
-D LOAD_FONT7=1
-D LOAD_FONT8=1
-D LOAD_GFXFF=1
-D SMOOTH_FONT=1
with the build flags -D LV_CONF_INCLUDE_SIMPLE and -I src you can switch LVGL in an mode where you can configure the parameters outside the normal lvgl_config.h file.Just drop the file into the src directory. The rest of the flags was needed for eTFT_SPI, if I’m not mistaken.