1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +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:
chris-penny 2015-01-19 22:53:02 +00:00
parent 6ef0f2ad63
commit 48bd7c1e19
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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);