Make the new animation on of the default animations

This commit is contained in:
Thomas Kolb 2021-08-23 22:00:58 +02:00
parent 75c17f28f8
commit bd6489e347
2 changed files with 7 additions and 1 deletions

View file

@ -20,6 +20,7 @@ class AnimationController
FIREWORK = 5,
STELLAR = 6,
RGBW_SINUS = 7,
RGBW_PSYCHEDELIC = 8,
NUM_DEFAULT_ANIMATIONS
};
@ -38,7 +39,8 @@ class AnimationController
"Matrix Code",
"Fireworks",
"Twinkling Sky",
"RGBW Sinus"
"RGBW Sinus",
"RGBW Psychedelic"
};
AnimationController(Fader *fader);

View file

@ -78,6 +78,10 @@ void AnimationController::changeAnimation(AnimationController::DefaultAnimation
anim.reset(new RgbwSinusAnimation(m_fader));
break;
case RGBW_PSYCHEDELIC:
anim.reset(new RgbwPsychedelicAnimation(m_fader));
break;
default:
return; // unknown id, do nothing
}