|
|
@ -8,15 +8,15 @@ void LEDChaseEffect_::update(void) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
current_chase_counter = 0;
|
|
|
|
current_chase_counter = 0;
|
|
|
|
LEDControl.led_set_crgb_at(pos - (chase_sign * chase_pixels), {0, 0, 0});
|
|
|
|
LEDControl.setCrgbAt(pos - (chase_sign * chase_pixels), {0, 0, 0});
|
|
|
|
LEDControl.led_set_crgb_at(pos, {0, 0, 0});
|
|
|
|
LEDControl.setCrgbAt(pos, {0, 0, 0});
|
|
|
|
|
|
|
|
|
|
|
|
pos += chase_sign;
|
|
|
|
pos += chase_sign;
|
|
|
|
if (pos >= LED_COUNT || pos <= 0) {
|
|
|
|
if (pos >= LED_COUNT || pos <= 0) {
|
|
|
|
chase_sign = -chase_sign;
|
|
|
|
chase_sign = -chase_sign;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
LEDControl.led_set_crgb_at(pos, {0, 0, 255});
|
|
|
|
LEDControl.setCrgbAt(pos, {0, 0, 255});
|
|
|
|
LEDControl.led_set_crgb_at(pos - (chase_sign * chase_pixels), {255, 0, 0});
|
|
|
|
LEDControl.setCrgbAt(pos - (chase_sign * chase_pixels), {255, 0, 0});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LEDChaseEffect_ LEDChaseEffect;
|
|
|
|
LEDChaseEffect_ LEDChaseEffect;
|
|
|
|