Added more effects to the cycle effect.

This commit is contained in:
Fabian Schlenz 2019-09-04 06:06:47 +02:00
parent 33c2417534
commit 0b80b74be3
1 changed files with 11 additions and 2 deletions

View File

@ -70,6 +70,7 @@ bool change_current_effect(String payload) {
LOGln("Effects * Could not find effect with name %s", payload.c_str());
return false;
}
LOGln("Effects * Switching to effect %s", payload.c_str());
delete current_effect;
current_effect = new_effect;
@ -91,8 +92,16 @@ bool change_current_effect(String payload) {
return true;
}
const char* cycle_effects[] = {"sinematrix3", "multi_dynamic", "matrix", "confetti", "single_dynamic", "snake", "gol"};
uint8_t cycle_effects_count = 7;
const char* cycle_effects[] = {
"sinematrix3",
"multi_dynamic",
"matrix", "rainbow_matrix", "random_matrix",
"confetti", "random_confetti",
"single_dynamic",
"snake",
"gol",
"twirl"};
uint8_t cycle_effects_count = 11;
void setup_effects() {
current_effect = new CycleEffect();