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

◆ loop()

void loop ( )

Definition at line 258 of file FxWave2d.ino.

258 {
259 // Your code here
260 uint32_t now = millis();
261 ui_state state = ui();
262 if (state.button) {
264 }
265 applyFancyEffect(now, state.bigButton);
267 Fx::DrawContext ctx(now, leds);
268 fxBlend.draw(ctx);
269 FastLED.show();
270}
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:197
void processAutoTrigger(uint32_t now)
Definition FxWave2d.ino:234
void triggerRipple()
Definition FxWave2d.ino:127
void applyFancyEffect(uint32_t now, bool button_active)
Definition FxWave2d.ino:139
_DrawContext DrawContext
Definition fx.h:21
bool bigButton
Definition FxWave2d.ino:194
bool button
Definition FxWave2d.ino:193

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

+ Here is the call graph for this function: