disp_driver: Add pointer to lv_disp_drv_t as parameter to disp_driver_init

This commit is contained in:
C47D 2021-08-26 18:54:15 -05:00
parent 0c6975954f
commit e314c7563b
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@
#include "esp_lcd_backlight.h"
#include "sdkconfig.h"
void *disp_driver_init(void)
void disp_driver_init(lv_disp_drv_t *drv)
{
#if defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9341
ili9341_init();
@ -16,7 +16,7 @@ void *disp_driver_init(void)
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9488
ili9488_init();
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ST7789
st7789_init();
st7789_init(drv);
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ST7796S
st7796s_init();
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ST7735S

View file

@ -67,7 +67,7 @@ extern "C" {
**********************/
/* Initialize display */
void *disp_driver_init(void);
void disp_driver_init(lv_disp_drv_t *drv);
/* Display flush callback */
void disp_driver_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map);