Re: LVGL support and more examples
Lazar Chervenkov <lazar.chervenkov@...>
toggle quoted messageShow quoted text
I'm using Nordic Connect SDK with Segger Embedded Studio, maybe that's why I'm confused. There is no option to select the shield in Segger and the nordic people forwarded me to Zephyr for help. So it's a magic circle :)
I also have a custom display shield with different spi pins and from the shield documentation I cannot understand how to remap the spi signals. The display driver is also different and I have to write it (it's a Sharp MIP LCD that I use).
Not sure if your question is about how to tell LVGL which display to use or how to select a specific display controller.
The former is done by setting CONFIG_LVGL_DISPLAY_DEV_NAME
to the same name as used by the display controller. Note that in case you are using any of the supported display shields, the shields config will take care of setting the correct value for CONFIG_LVGL_DISPLAY_DEV_NAME.
one, display controller selection, depends on the board you are using but all in-tree nrf52 boards, to my knowledge, make use of display shields and do not have on board display controllers. So the only thing you need is to pass the correct shield name during build.
For example to use the NRF52840 DK with an adafruit 2.8" TFT shield you can use following command to build: west build -b nrf52840dk_nrf52840 samples/gui/lvgl -- -DSHIELD=adafruit_2_8_tft_touch_v2
I don't understand how to select which driver is used for the current project, as all are listed in the kconfig.
LVGL has been updated to version 7 in master:
Changing the display driver is done in Kconfig (and I assume Devicetree):
I've been using LVGL for creating GUIs together with Nordic nRF5 SDK. I have to move to nRF Connect SDK for developing with nRF53 (which is actually based on Zephyr project). I'm quite new to Zephyr and I opened the LVGL example for nRF52840. But I'm using
a different display driver and I cannot find a way how to change it. The information in the documentation is quite poor for this topic. Is there a plan to also move to LVGL version 7, as the one that is used now is version 6.
Join email@example.com to automatically receive all group messages.