Closed C47D closed 1 year ago
I hope this PR is not in a big rush. We finally got more manpower to this interface design and we'd like to test it on several displays and interfaces. I'll keep you updated, thanks!
@tore-espressif it is not, hopefully we are going in the right direction.
This is the current proposal of the display interface abstraction. The functions declared in
lvgl_tft/display_port.h
are meant to be implemented by the user. In this repo they are defined inlv_port_display_espressif.c
in thelv_port
directory, as this is the directory were all of the ESP-IDF will end up.The
lv_disp_drv_t *drv
parameter is a pointer to the registeredlv_disp_drv_t
, so the user will be able to know what display should they handle, in this repo we currently only use one, so there's no use for it.In a following commit I will use this interface in two display drivers, one using SPI and the other one using I2C, so we can see the abstraction works for both kind of interfaces.