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

◆ setup()

void setup ( )

Definition at line 124 of file Fire2012WithPalette.ino.

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

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