12#define COLOR_ORDER GRB
48#define TEMPERATURE_1 Tungsten100W
49#define TEMPERATURE_2 OvercastSky
59 static uint8_t starthue = 0;
63 uint8_t secs = (millis() / 1000) % (DISPLAYTIME * 2);
64 if( secs < DISPLAYTIME) {
66 leds[0] = TEMPERATURE_1;
69 leds[0] = TEMPERATURE_2;
74 if( (secs % DISPLAYTIME) < BLACKTIME) {
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void setTemperature(const struct CRGB &temp)
Set a global color temperature.
void delay(unsigned long ms)
Delay for the given number of milliseconds.
void setBrightness(uint8_t scale)
Set the global brightness scaling.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
@ TypicalSMD5050
Typical values for SMD5050 LEDs.
void fill_rainbow(struct CRGB *targetArray, int numToFill, uint8_t initialhue, uint8_t deltahue)
Fill a range of LEDs with a rainbow of colors.
void * memset8(void *ptr, uint8_t value, uint16_t num)
Faster alternative to memset() on AVR.
Representation of an RGB pixel (Red, Green, Blue)