reverse led strip with defines, github action for peters bobbycar
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node: [feedc0de, comred]
|
||||
node: [feedc0de, comred, peter]
|
||||
steps:
|
||||
- name: Checkout (without submodules)
|
||||
uses: actions/checkout@v2
|
||||
|
@ -39,8 +39,10 @@ void updateLedStrip()
|
||||
const auto center = (std::begin(leds) + (leds.size() / 2) + settings.ledstrip.centerOffset);
|
||||
|
||||
#ifdef LEDSTRIP_WRONG_DIRECTION
|
||||
if(cpputils::is_in(blinkAnimation, 1, 2)){
|
||||
blinkAnimation = 3 - blinkAnimation;
|
||||
if(blinkAnimation == LEDSTRIP_ANIMATION_BLINKLEFT){
|
||||
blinkAnimation = LEDSTRIP_ANIMATION_BLINKRIGHT;
|
||||
} else if(blinkAnimation == LEDSTRIP_ANIMATION_BLINKRIGHT){
|
||||
blinkAnimation = LEDSTRIP_ANIMATION_BLINKLEFT;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user