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

◆ loop()

void loop ( )

Definition at line 78 of file FxGfx2Video.ino.

78 {
80 write_one_frame(memoryStream); // Write next frame data
81 }
82 // write_one_frame(memoryStream); // Write next frame data
83 // Draw the frame
84 fxEngine.draw(fl::millis(), leds);
85 // Show the LEDs
86 FastLED.show();
87 delay(20); // Adjust this delay to control frame rate
88}
fl::FxEngine fxEngine(NUM_LEDS)
fl::CRGB leds[NUM_LEDS]
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::memorybufPtr memoryStream
void write_one_frame(fl::memorybufPtr memoryStream)
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1045
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98

References EVERY_N_MILLISECONDS, FastLED, fxEngine, leds, memoryStream, fl::millis(), and write_one_frame().

+ Here is the call graph for this function: