mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
I hope this is along the right lines... I have it running on NAZE32 ACRO
it is using the BOXLLIGHTS at the moment but I'll update it to use BOXLEDLOW asap
This commit is contained in:
parent
6ef0f2ad63
commit
48bd7c1e19
2 changed files with 12 additions and 0 deletions
|
@ -741,6 +741,11 @@ void updateLedStrip(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if ( IS_RC_MODE_ACTIVE(BOXLLIGHTS)){
|
||||
ledStripDisable();
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t now = micros();
|
||||
|
||||
bool indicatorFlashNow = indicatorFlashNow = (int32_t)(now - nextIndicatorFlashAt) >= 0L;
|
||||
|
@ -883,4 +888,10 @@ void ledStripEnable(void)
|
|||
|
||||
ws2811LedStripInit();
|
||||
}
|
||||
|
||||
void ledStripDisable(void)
|
||||
{
|
||||
setStripColor(&hsv_black);
|
||||
ws2811UpdateStrip();
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -73,4 +73,5 @@ bool parseColor(uint8_t index, const char *colorConfig);
|
|||
void applyDefaultColors(hsvColor_t *colors, uint8_t colorCount);
|
||||
|
||||
void ledStripEnable(void);
|
||||
void ledStripDisable(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue