Files
Chirag Atal 82ecf9fa05 device_hal: Restructuring to make the usage flexible.
button_driver: Add support for gpio and adc from esp-iot-solution.
led_driver: Renamed light_driver to led_driver.
app_driver: Using this restructured device_hal.
app_driver: Added toggle based on button_driver.
2022-05-04 10:38:24 +05:30

13 lines
399 B
CMake

include($ENV{ESP_MATTER_DEVICE_PATH}/esp_matter_device.cmake)
set(led_requires driver)
if ("${led_type}" STREQUAL "ws2812")
list(APPEND led_requires led_strip)
elseif ("${led_type}" STREQUAL "vled")
list(APPEND led_requires tft spidriver)
endif()
idf_component_register(SRC_DIRS ${led_type} utils
INCLUDE_DIRS include
PRIV_REQUIRES ${led_requires})