Ok I will gett he hang of this system yet. Code
if (heatState == 1) {
if (animations.IsAnimating()) {
exit;
}
else if(heatCycle < 4){
FadeInFadeOutRinseRepeat(0.15f, 360); // 0.0 = black, 0.25 is normal, 0.5 is bright
}
}
if (heatState == 0) {
if (animations.IsAnimating()) {
exit;
}
else if(heatCycle < 4){
FadeInFadeOutRinseRepeat(0.1f, 200); // 0.0 = black, 0.25 is normal, 0.5 is bright
}
}
if (heatState == 2 && effectState == 1) {
//Serial.println("Starting animation blue beat");
if (animations.IsAnimating()) {
FadeInFadeOutRinseRepeat(0.1f, 200); // 0.0 = black, 0.25 is normal, 0.5 is bright
}
}
if (animations.IsAnimating())
{
// the normal loop just needs these two to run the active animations
//Serial.println("update anim");
animations.UpdateAnimations();
strip.Show();
}
However when I add conditions for the status lights an animation is already running so the animations do not run. How do I differentiate between animations?