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

◆ setup()

void setup ( )

Definition at line 125 of file Fire2012WithPalette.ino.

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