120 {
121 uint32_t now = millis();
126
129 }
130 static int frame = 0;
131
132
136 }
137 }
138
141
142 }
143
144
145 static int lastFxIndex = -1;
146 if (
fxIndex.value() != lastFxIndex) {
149 }
150
151
154 frame++;
155}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
FxEngine fxEngine(NUM_LEDS)
UISlider brightness("Brightness", 1, 0, 1)
#define EVERY_N_MILLISECONDS_DYNAMIC(PERIOD_FUNC)
Checks whether to execute a block of code every N milliseconds, where N is determined dynamically.
UISlider changePalletTime("Noise - Time until next random Palette", 5, 1, 100)
UIButton changePalette("Noise - Next Palette")
UISlider timeSpeed("Time Speed", 1, -10, 10,.1)
UICheckbox changePallete("Noise - Auto Palette", true)
UIButton changeFx("Switch between Noise & Animartrix")
UINumberField fxIndex("Animartrix - index", 0, 0, NUM_ANIMATIONS)
NoisePalette noisePalette
UICheckbox isOff("Off", false)
Animartrix animartrix(xyMap, POLAR_WAVES)