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

◆ loop()

void loop ( )

Definition at line 145 of file Fire2012WithPalette.ino.

146{
147 // Add entropy to random number generator; we use a lot of it.
148 random16_add_entropy( random());
149
150 // Fourth, the most sophisticated: this one sets up a new palette every
151 // time through the loop, based on a hue that changes every time.
152 // The palette is a gradient from black, to a dark color based on the hue,
153 // to a light color based on the hue, to white.
154 //
155 // static uint8_t hue = 0;
156 // hue++;
157 // CRGB darkcolor = CHSV(hue,255,192); // pure hue, three-quarters brightness
158 // CRGB lightcolor = CHSV(hue,128,255); // half 'whitened', full brightness
159 // gPal = CRGBPalette16( CRGB::Black, darkcolor, lightcolor, CRGB::White);
160
161
162 Fire2012WithPalette(); // run simulation frame, using palette colors
163
164 FastLED.show(); // display this frame
165 FastLED.delay(1000 / FRAMES_PER_SECOND);
166}
#define FRAMES_PER_SECOND
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
void Fire2012WithPalette()
LIB8STATIC void random16_add_entropy(uint16_t entropy)
Add entropy into the random number generator.
Definition random8.h:101

References FastLED, Fire2012WithPalette(), FRAMES_PER_SECOND, and random16_add_entropy().

+ Here is the call graph for this function: