feat(disp_driver): Move backlight configuration to it's own API
This commit is contained in:
parent
3980e51f07
commit
85f70cb688
|
@ -45,6 +45,11 @@ void *disp_driver_init(lv_disp_drv_t *drv)
|
|||
ili9163c_init();
|
||||
#endif
|
||||
|
||||
return disp_backlight_init();
|
||||
}
|
||||
|
||||
void *disp_backlight_init(void)
|
||||
{
|
||||
// We still use menuconfig for these settings
|
||||
// It will be set up during runtime in the future
|
||||
#if (defined(CONFIG_LV_DISP_BACKLIGHT_SWITCH) || defined(CONFIG_LV_DISP_BACKLIGHT_PWM))
|
||||
|
|
|
@ -79,6 +79,8 @@ void disp_driver_rounder(lv_disp_drv_t * disp_drv, lv_area_t * area);
|
|||
void disp_driver_set_px(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
|
||||
lv_color_t color, lv_opa_t opa);
|
||||
|
||||
/* Display backlight configuration */
|
||||
void *disp_backlight_init(void);
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
|
|
Loading…
Reference in a new issue