diff --git a/radio/src/targets/taranis/CMakeLists.txt b/radio/src/targets/taranis/CMakeLists.txt index d3d3d9f36..5d6345a06 100644 --- a/radio/src/targets/taranis/CMakeLists.txt +++ b/radio/src/targets/taranis/CMakeLists.txt @@ -7,6 +7,7 @@ option(INTERNAL_MODULE_PPM "Support for PPM internal module" OFF) option(AUTOUPDATE "Auto update internal chips from SD" OFF) option(BIND_KEY "Enable bind button" OFF) option(BLUETOOTH "FrSky BT module support" OFF) +option(WS2812 "Support for ws2812 RGB leds" OFF) set(USE_RTC_CLOCK YES) set(HARDWARE_EXTERNAL_MODULE YES) @@ -147,6 +148,7 @@ elseif(PCB STREQUAL X7) set(DEFAULT_INTERNAL_MODULE CROSSFIRE CACHE STRING "Default internal module") set(INTERNAL_MODULE_SERIAL YES) set(MODULE_SIZE_SML YES) + set(WS2812 YES) set(FLAVOUR t14) set(ROTARY_ENCODER YES) set(CPU_TYPE_FULL STM32F407xG) @@ -249,6 +251,7 @@ elseif(PCB STREQUAL X7) set(CPU_TYPE_FULL STM32F407xG) set(ROTARY_ENCODER YES) set(BLUETOOTH NO) + set(WS2812 YES) set(USB_CHARGER YES) set(HELI NO) add_definitions(-DRADIO_MT12) @@ -612,7 +615,7 @@ if(PCB STREQUAL XLITE OR PCB STREQUAL XLITES OR PCBREV STREQUAL COMMANDO8) targets/common/arm/stm32/sticks_pwm_driver.cpp) endif() -if(PCBREV STREQUAL MT12 OR PCBREV STREQUAL T14) +if(WS2812) set(FIRMWARE_SRC ${FIRMWARE_SRC} targets/common/arm/stm32/stm32_ws2812.cpp