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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node: [feedc0de, comred]
|
node: [feedc0de, comred, peter]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (without submodules)
|
- name: Checkout (without submodules)
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -39,8 +39,10 @@ void updateLedStrip()
|
|||||||
const auto center = (std::begin(leds) + (leds.size() / 2) + settings.ledstrip.centerOffset);
|
const auto center = (std::begin(leds) + (leds.size() / 2) + settings.ledstrip.centerOffset);
|
||||||
|
|
||||||
#ifdef LEDSTRIP_WRONG_DIRECTION
|
#ifdef LEDSTRIP_WRONG_DIRECTION
|
||||||
if(cpputils::is_in(blinkAnimation, 1, 2)){
|
if(blinkAnimation == LEDSTRIP_ANIMATION_BLINKLEFT){
|
||||||
blinkAnimation = 3 - blinkAnimation;
|
blinkAnimation = LEDSTRIP_ANIMATION_BLINKRIGHT;
|
||||||
|
} else if(blinkAnimation == LEDSTRIP_ANIMATION_BLINKRIGHT){
|
||||||
|
blinkAnimation = LEDSTRIP_ANIMATION_BLINKLEFT;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user