FastLED 3.9.3
Loading...
Searching...
No Matches
Fire2012WithPalette.ino File Reference

Detailed Description

Simple one-dimensional fire animation with a programmable color palette.

Definition in file Fire2012WithPalette.ino.

#include <FastLED.h>

Go to the source code of this file.

Macros

#define LED_PIN   5
 
#define COLOR_ORDER   GRB
 
#define CHIPSET   WS2811
 
#define NUM_LEDS   30
 
#define BRIGHTNESS   200
 
#define FRAMES_PER_SECOND   60
 
#define COOLING   55
 
#define SPARKING   120
 

Functions

void setup ()
 
void loop ()
 
void Fire2012WithPalette ()
 

Variables

bool gReverseDirection = false
 
CRGB leds [NUM_LEDS]
 
CRGBPalette16 gPal
 

Macro Definition Documentation

◆ BRIGHTNESS

#define BRIGHTNESS   200

Definition at line 12 of file Fire2012WithPalette.ino.

◆ CHIPSET

#define CHIPSET   WS2811

Definition at line 9 of file Fire2012WithPalette.ino.

◆ COLOR_ORDER

#define COLOR_ORDER   GRB

Definition at line 8 of file Fire2012WithPalette.ino.

◆ COOLING

#define COOLING   55

Definition at line 124 of file Fire2012WithPalette.ino.

◆ FRAMES_PER_SECOND

#define FRAMES_PER_SECOND   60

Definition at line 13 of file Fire2012WithPalette.ino.

◆ LED_PIN

#define LED_PIN   5

Definition at line 7 of file Fire2012WithPalette.ino.

◆ NUM_LEDS

#define NUM_LEDS   30

Definition at line 10 of file Fire2012WithPalette.ino.

◆ SPARKING

#define SPARKING   120

Definition at line 129 of file Fire2012WithPalette.ino.

Function Documentation

◆ Fire2012WithPalette()

void Fire2012WithPalette ( )

Definition at line 132 of file Fire2012WithPalette.ino.

◆ loop()

void loop ( )

Definition at line 69 of file Fire2012WithPalette.ino.

◆ setup()

void setup ( )

Definition at line 48 of file Fire2012WithPalette.ino.

Variable Documentation

◆ gPal

Definition at line 46 of file Fire2012WithPalette.ino.

◆ gReverseDirection

bool gReverseDirection = false

Definition at line 15 of file Fire2012WithPalette.ino.

◆ leds

CRGB leds[NUM_LEDS]

Definition at line 17 of file Fire2012WithPalette.ino.