From 0b80b74be332f3c245d68102a004ce2d68393be8 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 4 Sep 2019 06:06:47 +0200 Subject: [PATCH] Added more effects to the cycle effect. --- src/effects.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/effects.cpp b/src/effects.cpp index fb3ba34..2600209 100644 --- a/src/effects.cpp +++ b/src/effects.cpp @@ -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();