Fixed / revert 'Switched left and right'
This commit is contained in:
@ -38,9 +38,9 @@ void updateLedStrip()
|
|||||||
auto color = CRGB{255, 255, 0};
|
auto color = CRGB{255, 255, 0};
|
||||||
const auto center = (std::begin(leds) + (leds.size() / 2) + settings.ledstrip.centerOffset);
|
const auto center = (std::begin(leds) + (leds.size() / 2) + settings.ledstrip.centerOffset);
|
||||||
|
|
||||||
if (blinkAnimation != LEDSTRIP_ANIMATION_BLINKRIGHT)
|
|
||||||
std::fill(center - settings.ledstrip.bigOffset, center - settings.ledstrip.smallOffset, color);
|
|
||||||
if (blinkAnimation != LEDSTRIP_ANIMATION_BLINKLEFT)
|
if (blinkAnimation != LEDSTRIP_ANIMATION_BLINKLEFT)
|
||||||
|
std::fill(center - settings.ledstrip.bigOffset, center - settings.ledstrip.smallOffset, color);
|
||||||
|
if (blinkAnimation != LEDSTRIP_ANIMATION_BLINKRIGHT)
|
||||||
std::fill(center + settings.ledstrip.smallOffset, center + settings.ledstrip.bigOffset, color);
|
std::fill(center + settings.ledstrip.smallOffset, center + settings.ledstrip.bigOffset, color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file contains a few defines, so you don't have to remember which ledstrip animation is which number
|
* This file contains a few defines, so you don't have to remember which ledstrip animation is which number
|
||||||
*/
|
*/
|
||||||
#define LEDSTRIP_ANIMATION_DEFAULTRAINBOW 0
|
#define LEDSTRIP_ANIMATION_DEFAULTRAINBOW 0
|
||||||
#define LEDSTRIP_ANIMATION_BLINKLEFT 2
|
#define LEDSTRIP_ANIMATION_BLINKLEFT 1
|
||||||
#define LEDSTRIP_ANIMATION_BLINKRIGHT 1
|
#define LEDSTRIP_ANIMATION_BLINKRIGHT 2
|
||||||
#define LEDSTRIP_ANIMATION_BLINKBOTH 3
|
#define LEDSTRIP_ANIMATION_BLINKBOTH 3
|
||||||
|
|
||||||
#define LEDSTRIP_ANIMATION_DEFAULT LEDSTRIP_ANIMATION_DEFAULTRAINBOW
|
#define LEDSTRIP_ANIMATION_DEFAULT LEDSTRIP_ANIMATION_DEFAULTRAINBOW
|
||||||
|
Reference in New Issue
Block a user