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

◆ loop()

void loop ( )

Definition at line 60 of file FxAnimartrix.ino.

60 {
61 FastLED.setBrightness(brightness);
62 fxEngine.setSpeed(timeSpeed);
63 static int lastFxIndex = -1;
64 if (fxIndex.value() != lastFxIndex) {
65 lastFxIndex = fxIndex;
66 animartrix.fxSet(fxIndex);
67 }
68 fxEngine.draw(millis(), leds);
69 FastLED.show();
70}
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.