Carve out backlight control to separate component
This commit is contained in:
parent
678779c848
commit
fa042b0ecd
6 changed files with 227 additions and 108 deletions
|
@ -3,8 +3,7 @@ if(ESP_PLATFORM)
|
|||
file(GLOB SOURCES *.c)
|
||||
set(LVGL_INCLUDE_DIRS . lvgl_tft)
|
||||
list(APPEND SOURCES "lvgl_tft/disp_driver.c")
|
||||
|
||||
#@todo add SimleInclude macro here
|
||||
list(APPEND SOURCES "lvgl_tft/esp_lcd_backlight.c")
|
||||
|
||||
# Include only the source file of the selected
|
||||
# display controller.
|
||||
|
@ -79,11 +78,6 @@ if(CONFIG_LV_TOUCH_CONTROLLER)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
# Add backlight control to compilation only if it is selected in menuconfig
|
||||
if(CONFIG_LV_ENABLE_BACKLIGHT_CONTROL)
|
||||
list(APPEND SOURCES "lvgl_tft/esp_lcd_backlight.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_LV_I2C)
|
||||
list(APPEND SOURCES "lvgl_i2c/i2c_manager.c")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue