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

◆ loop()

void loop ( )

Definition at line 61 of file FxEngine.ino.

61 {
62 noisePalette1.setSpeed(SPEED);
63 noisePalette1.setScale(SCALE);
64 noisePalette2.setSpeed(SPEED);
65 noisePalette2.setScale(int(SCALE) * 3 / 2); // Make the different.
67 if (switchFx) {
68 fxEngine.nextFx(500);
69 }
70 }
71 fxEngine.draw(millis(), leds);
72 FastLED.show();
73}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
FxEngine fxEngine(NUM_LEDS)
NoisePalette noisePalette2(xyMap)
UICheckbox switchFx("Switch Fx", true)
NoisePalette noisePalette1(xyMap)
#define SCALE
Definition Overclock.ino:63
#define SPEED
Definition Overclock.ino:69
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
Definition lib8tion.h:1324

References EVERY_N_SECONDS, FastLED, fxEngine, leds, noisePalette1, noisePalette2, SCALE, SPEED, and switchFx.