lvgl / lvgl_esp32_drivers

Drivers for ESP32 to be used with LVGL
MIT License
339 stars 285 forks source link

Develop branch is broken? disp_driver_init is not called anywhere? #179

Open richardclli opened 2 years ago

richardclli commented 2 years ago

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.

C47D commented 2 years ago

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

richardclli commented 2 years ago

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.

arktrin commented 2 years ago

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