Closed strawberry3papa closed 1 week ago
@strawberry3papa
We won't add LVGL into esp-idf repo, but LVGL has been in our component registry for a long time: https://components.espressif.com/components/lvgl/lvgl
For how to use it, please refer to esp-idf examples, there're many. e.g. https://github.com/espressif/esp-idf/blob/master/examples/peripherals/lcd/spi_lcd_touch/main/idf_component.yml#L3
Before that, you may want to read the document about how to use the Espressif component manager: https://docs.espressif.com/projects/idf-component-manager/en/latest/reference/manifest_file.html
It is inconvenient to patch each time.
Can you describe what is being patched in your project? The device driver or the LVGL porting layer?
Perhaps if I do the example below, lvgl is automatically received? https://github.com/espressif/esp-idf/blob/master/examples/peripherals/lcd/spi_lcd_touch/main/idf_component.yml#L3
The patch you posted actually is not for the LVGL library, but for the PSRAM support. A 120M DDR psram feature is not available on esp-idf v5.0. To make it work, user has to applied the patch.
Since esp-idf 5.1, the patch is not necessary, because we're adding it as an experimental feature in the esp-idf. See https://github.com/espressif/esp-idf/commit/739b3f03fbada583fe6a07ca771754505ef5b3fd
Also the doc here: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/flash_psram_config.html#all-supported-modes-and-speeds
@suda-morris
I used esp-idf v5.1
@strawberry3papa
The following Kconfig combination work for me:
CONFIG_IDF_TARGET="esp32s3"
CONFIG_ESPTOOLPY_FLASHFREQ_120M=y
CONFIG_SPIRAM=y
CONFIG_SPIRAM_MODE_OCT=y
CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y
CONFIG_SPIRAM_RODATA=y
CONFIG_SPIRAM_SPEED_120M=y
CONFIG_LV_MEM_CUSTOM=y
CONFIG_LV_MEMCPY_MEMSET_STD=y
CONFIG_LV_USE_PERF_MONITOR=y
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
BTW, I'm testing on the master branch.
Thanks for reporting, feel free to reopen.
Is your feature request related to a problem?
It is inconvenient to patch each time. When will the lvgl component be added to ESP-IDF git?
Describe the solution you'd like.
Please add the lvgl component to ESP-IDF git.
Describe alternatives you've considered.
No response
Additional context.
No response