mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Added single colour mode to WS2811 driver for RAM savings.
This commit is contained in:
parent
7393d5fdac
commit
37d0d402c8
6 changed files with 52 additions and 63 deletions
|
@ -94,10 +94,6 @@ static uint8_t previousProfileColorIndex = COLOR_UNDEFINED;
|
|||
#define BEACON_FAILSAFE_PERIOD_US 250 // 2Hz
|
||||
#define BEACON_FAILSAFE_ON_PERCENT 50 // 50% duty cycle
|
||||
|
||||
#if LED_MAX_STRIP_LENGTH > WS2811_LED_STRIP_LENGTH
|
||||
# error "Led strip length must match driver"
|
||||
#endif
|
||||
|
||||
const hsvColor_t hsv[] = {
|
||||
// H S V
|
||||
[COLOR_BLACK] = { 0, 0, 0},
|
||||
|
@ -140,6 +136,11 @@ void pgResetFn_ledStripConfig(ledStripConfig_t *ledStripConfig)
|
|||
}
|
||||
|
||||
#ifdef USE_LED_STRIP_STATUS_MODE
|
||||
|
||||
#if LED_MAX_STRIP_LENGTH > WS2811_LED_STRIP_LENGTH
|
||||
# error "Led strip length must match driver"
|
||||
#endif
|
||||
|
||||
const hsvColor_t *colors;
|
||||
const modeColorIndexes_t *modeColors;
|
||||
specialColorIndexes_t specialColors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue