- Examples
- Fire2012.ino.
Definition at line 79 of file Fire2012.ino.
80{
81
83
84
87 }
88
89
90 for(
int k=
NUM_LEDS - 1; k >= 2; k--) {
92 }
93
94
98 }
99
100
101 for(
int j = 0; j <
NUM_LEDS; j++) {
103 int pixelnumber;
106 } else {
107 pixelnumber = j;
108 }
109 leds[pixelnumber] = color;
110 }
111}
CRGB HeatColor(fl::u8 temperature)
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().