110 {
115
118 }
119 static int frame = 0;
123 }
124 }
125
128
129 }
130 static int lastFxIndex = -1;
131 if (
fxIndex.value() != lastFxIndex) {
134 }
135
136
139 frame++;
140}
CFastLED FastLED
Global LED strip management instance.
UISlider brightness("Brightness", 255, 0, 255, 1)
UISlider timeSpeed("Time Speed", 1, -10, 10,.1)
FxEngine fxEngine(NUM_LEDS)
Animartrix animartrix(xyMap, FIRST_ANIMATION)
UINumberField fxIndex("Animartrix - index", 0, 0, NUM_ANIMATIONS - 1)
UISlider scale("Scale", 4,.1, 4,.1)
NoisePalette noisePalette(xyMap)
#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")
UICheckbox changePallete("Noise - Auto Palette", true)
UIButton changeFx("Switch between Noise & Animartrix")
UICheckbox isOff("Off", false)