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

◆ loop()

void loop ( )

Definition at line 65 of file FxEngine.ino.

65 {
66 noisePalette1.setSpeed(SPEED);
67 noisePalette1.setScale(SCALE);
68 noisePalette2.setSpeed(SPEED);
69 noisePalette2.setScale(int(SCALE) * 3 / 2); // Make the different.
71 if (switchFx) {
72 fxEngine.nextFx(500);
73 }
74 }
75 fxEngine.draw(millis(), leds);
76 FastLED.show();
77}
CRGB leds[NUM_LEDS]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
NoisePalette noisePalette2(xyMap)
UICheckbox switchFx("Switch Fx", true)
NoisePalette noisePalette1(xyMap)
fl::unique_ptr< FxEngine > fxEngine
Definition curr.h:299
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
Definition lib8tion.h:1186
#define SCALE
Definition wasm_impl.h:65
#define SPEED
Definition wasm_impl.h:71

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