I have always used TFT_eSPI as the display driver when I use LVGL because ... well ... it's easy and it works. However I've noticed that in some recent release LVGL has added built in display drivers for some popular display controllers and I thought I would try them out.
The instructions are here and it all looks fairly simple. You just have to provide two functions for LVGL to write to the display and do the SPI initialisation yourself.
I had a go at this using a CYD board that has an ILI9341 display, and of course it doesn't work but it doesn't work in a weird way. When I call lv_ili9341_create() to create my ILI9341 device the function never returns. When I turn tracing on I can see LVGL creating the display object, and no errors are reported, but the code must be hanging somewhere inside lv_ili9341_create() .
I have put the code on Github here . If anyone can spot my mistake please let me know.…