- Examples
- Fire2012.ino.
Definition at line 76 of file Fire2012.ino.
77{
78
80
81
84 }
85
86
87 for(
int k=
NUM_LEDS - 1; k >= 2; k--) {
89 }
90
91
95 }
96
97
100 int pixelnumber;
103 } else {
104 pixelnumber = j;
105 }
106 leds[pixelnumber] = color;
107 }
108}
CRGB HeatColor(uint8_t temperature)
Approximates a "black body radiation" spectrum for a given "heat" level.
LIB8STATIC_ALWAYS_INLINE uint8_t qadd8(uint8_t i, uint8_t j)
Add one byte to another, saturating at 0xFF.
LIB8STATIC_ALWAYS_INLINE uint8_t qsub8(uint8_t i, uint8_t j)
Subtract one byte from another, saturating at 0x00.
LIB8STATIC uint8_t random8()
Generate an 8-bit random number.
Representation of an RGB pixel (Red, Green, Blue)
References COOLING, gReverseDirection, heat, HeatColor(), leds, NUM_LEDS, qadd8(), qsub8(), random8(), SPARKING, and y.
Referenced by loop().