lvgl_esp32_drivers icon indicating copy to clipboard operation
lvgl_esp32_drivers copied to clipboard

Develop branch is broken? disp_driver_init is not called anywhere?

Open richardclli opened this issue 2 years ago • 3 comments

Seems the develop branch is not working now. Need any help to speed up coding? I can offer some help. Need to know what should I do next.

richardclli avatar Feb 09 '22 10:02 richardclli

See fc81c6da5a553ac8ba7f6f3bd482cd1f46e6f736, in devel you need to call the display driver init yourself, and pass a pointer to the registered lv_disp_drv_t

C47D avatar Feb 09 '22 14:02 C47D

I noticed this already, the README mentioned the need to call lvgl_interface_init for spi/i2c init and lvgl_display_gpios_init for gpio init, but not mentioned anything about disp_driver_init and cannot found anything in the examples as well. I managed to call disp_driver_init in my main.c, and finally got the LCD to show something.

richardclli avatar Feb 10 '22 01:02 richardclli

cannot found anything in the examples

You may try to find working examples here: https://github.com/lvgl/lv_port_esp32/tree/feat/new_driver_test

arktrin avatar Feb 10 '22 13:02 arktrin