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

◆ loop()

void loop ( )

Definition at line 57 of file DemoReel100.ino.

58{
59 // Call the current pattern function once, updating the 'leds' array
61
62 // send the 'leds' array out to the actual LED strip
63 FastLED.show();
64 // insert a delay to keep the framerate modest
65 FastLED.delay(1000/FRAMES_PER_SECOND);
66
67 // do some periodic updates
68 EVERY_N_MILLISECONDS( 20 ) { gHue++; } // slowly cycle the "base color" through the rainbow
69 EVERY_N_SECONDS( 10 ) { nextPattern(); } // change patterns periodically
70}
void nextPattern()
uint8_t gCurrentPatternNumber
#define FRAMES_PER_SECOND
uint8_t gHue
SimplePatternList gPatterns
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1045
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
Definition lib8tion.h:1010

References EVERY_N_MILLISECONDS, EVERY_N_SECONDS, FastLED, FRAMES_PER_SECOND, gCurrentPatternNumber, gHue, gPatterns, and nextPattern().

+ Here is the call graph for this function: