FastLED 3.9.15
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 62 of file FxAnimartrix.ino.

62 {
63 FastLED.setBrightness(brightness);
64 fxEngine.setSpeed(timeSpeed);
65 static int lastFxIndex = -1;
66 if (fxIndex.value() != lastFxIndex) {
67 lastFxIndex = fxIndex;
68 animartrix.fxSet(fxIndex);
69 }
70 fxEngine.draw(millis(), leds);
71 FastLED.show();
72}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
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)

References animartrix, brightness, FastLED, fxEngine, fxIndex, leds, and timeSpeed.