Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using local lv_conf.h with custom esp_bsp as a component (BSP-483) #318

Open
sukesh-ak opened this issue Apr 9, 2024 · 3 comments
Open

Comments

@sukesh-ak
Copy link

Sample project
https://github.com/sukesh-ak/BSP-IDF5-ESP_LCD-LVGL9

Usually for lvgl to work with local custom lv_conf.h, I use the following in the CMakeLists.txt which is in the root.
This always worked but now with bsp in the components folder, this does not work anymore.

#LVGL custom config file setup
idf_build_set_property(COMPILE_OPTIONS "-DLV_LVGL_H_INCLUDE_SIMPLE=1" APPEND)
idf_build_set_property(COMPILE_OPTIONS "-I../main" APPEND)

Not working (default sdkconfig)

#
# LVGL configuration
#
CONFIG_LV_CONF_SKIP=y
# CONFIG_LV_CONF_MINIMAL is not set

Working

Note

If we uncheck Check this to not use custom lv_conf.h under Component config > LVGL configuration with idf.py menuconfig.

#
# LVGL configuration
#
# CONFIG_LV_CONF_SKIP is not set
# CONFIG_LV_CONF_MINIMAL is not set

So the question is, how to make the above work without the user going into idf.py menuconfig, just to uncheck the Check this to not use custom lv_conf.h ?

@github-actions github-actions bot changed the title Using local lv_conf.h with custom esp_bsp as a component Using local lv_conf.h with custom esp_bsp as a component (BSP-483) Apr 9, 2024
@espzav
Copy link
Collaborator

espzav commented Apr 10, 2024

Hello @sukesh-ak ,
when you are using LVGL with Espressif chips, there is only menuconfig solution for LVGL configuration. For default settings is recommended to use sdkconfig.defaults.

It seems, that you have same question as we from Espressif. We are solving this here: lvgl/lvgl#6010
We want to set some default settings from component and not need for it sdkconfig.defaults in examples/demos.

@espzav
Copy link
Collaborator

espzav commented Apr 10, 2024

@kisvegabor it seems, that it is same issue as here lvgl/lvgl#6010

@kisvegabor
Copy link

Thanks for tagging me. I have a few items on my todo list, but after that we can prioritize lvgl/lvgl#6010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants