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

◆ loop()

void loop ( )

Definition at line 250 of file FxWave2d.ino.

250 {
251 // Your code here
252 uint32_t now = millis();
253 ui_state state = ui();
254 if (state.button) {
256 }
257 applyFancyEffect(now, state.bigButton);
259 Fx::DrawContext ctx(now, leds);
260 fxBlend.draw(ctx);
261 FastLED.show();
262}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
Blend2d fxBlend(xyMap)
ui_state ui()
Definition FxWave2d.ino:189
void processAutoTrigger(uint32_t now)
Definition FxWave2d.ino:226
void triggerRipple()
Definition FxWave2d.ino:120
void applyFancyEffect(uint32_t now, bool button_active)
Definition FxWave2d.ino:132
_DrawContext DrawContext
Definition fx.h:21
bool bigButton
Definition FxWave2d.ino:186
bool button
Definition FxWave2d.ino:185

References applyFancyEffect(), ui_state::bigButton, ui_state::button, FastLED, fxBlend, leds, processAutoTrigger(), triggerRipple(), and ui().

+ Here is the call graph for this function: