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

View File

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