mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
SPARKY - Add LED STRIP support.
Update PWM mapping to avoid PWM/LedStrip clash on Motor output pin 5.
This commit is contained in:
parent
5a07194d62
commit
5d8e39f2d9
4 changed files with 82 additions and 27 deletions
|
@ -334,8 +334,15 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
|
|||
|
||||
#ifdef LED_STRIP_TIMER
|
||||
// skip LED Strip output
|
||||
if (init->useLEDStrip && timerHardwarePtr->tim == LED_STRIP_TIMER)
|
||||
continue;
|
||||
if (init->useLEDStrip) {
|
||||
if (timerHardwarePtr->tim == LED_STRIP_TIMER)
|
||||
continue;
|
||||
#if defined(WS2811_GPIO) && defined(WS2811_PIN)
|
||||
if (timerHardwarePtr->gpio == WS2811_GPIO && timerHardwarePtr->pin == WS2811_PIN)
|
||||
continue;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef STM32F10X
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue