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

View File

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