feat: Support for WS2812 RGB LEDs (#3909)
Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
This commit is contained in:
@@ -19,6 +19,11 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if !defined(SIMU)
|
||||
#include "stm32_ws2812.h"
|
||||
#include "boards/generic_stm32/rgb_leds.h"
|
||||
#endif
|
||||
|
||||
#include "opentx.h"
|
||||
#include "io/frsky_firmware_update.h"
|
||||
#include "hal/adc_driver.h"
|
||||
@@ -1651,6 +1656,10 @@ void opentxInit()
|
||||
|
||||
resetBacklightTimeout();
|
||||
|
||||
#if defined(LED_STRIP_GPIO) && !defined(SIMU)
|
||||
rgbLedStart();
|
||||
#endif
|
||||
|
||||
pulsesStart();
|
||||
WDG_ENABLE(WDG_DURATION);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user