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

◆ setup()

void setup ( )

Definition at line 126 of file Fire2012WithPalette.ino.

126 {
127 delay(3000); // sanity delay
128 FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
129 FastLED.setBrightness( BRIGHTNESS );
130
131 // This first palette is the basic 'black body radiation' colors,
132 // which run from black to red to bright yellow to white.
134
135 // These are other ways to set up the color palette for the 'fire'.
136 // First, a gradient from black to red to yellow to white -- similar to HeatColors_p
137 // gPal = CRGBPalette16( CRGB::Black, CRGB::Red, CRGB::Yellow, CRGB::White);
138
139 // Second, this palette is like the heat colors, but blue/aqua instead of red/yellow
140 // gPal = CRGBPalette16( CRGB::Black, CRGB::Blue, CRGB::Aqua, CRGB::White);
141
142 // Third, here's a simpler, three-step gradient, from black to red to white
143 // gPal = CRGBPalette16( CRGB::Black, CRGB::Red, CRGB::White);
144 Serial.println("setup");
145}
#define COLOR_ORDER
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define LED_PIN
#define BRIGHTNESS
#define CHIPSET
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CRGBPalette16 gPal
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:15
const TProgmemRGBPalette16 HeatColors_p
Approximate "black body radiation" palette, akin to the FastLED HeatColor() function.
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
#define Serial
Definition serial.h:304

References BRIGHTNESS, CHIPSET, COLOR_ORDER, FastLED, gPal, HeatColors_p, LED_PIN, leds, NUM_LEDS, Serial, and TypicalLEDStrip.