10#define LED_TYPE WS2811
11#define COLOR_ORDER GRB
14#define UPDATES_PER_SECOND 100
67 static uint8_t startIndex = 0;
68 startIndex = startIndex + 1;
97 uint8_t secondHand = (millis() / 1000) % 60;
98 static uint8_t lastSecond = 99;
100 if( lastSecond != secondHand) {
101 lastSecond = secondHand;
119 for(
int i = 0; i < 16; ++i) {
148 green, green, black, black,
149 purple, purple, black, black,
150 green, green, black, black,
151 purple, purple, black, black );
void SetupTotallyRandomPalette()
TBlendType currentBlending
const TProgmemPalette16 myRedWhiteBluePalette_p
void ChangePalettePeriodically()
#define UPDATES_PER_SECOND
CRGBPalette16 currentPalette
CRGBPalette16 myRedWhiteBluePalette
void FillLEDsFromPaletteColors(uint8_t colorIndex)
void SetupPurpleAndGreenPalette()
void SetupBlackAndWhiteStripedPalette()
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
UISlider brightness("Brightness", 255, 0, 255, 1)
RGB color palette with 16 discrete values.
#define TProgmemPalette16
Alias for TProgmemRGBPalette16.
#define FL_PROGMEM
PROGMEM keyword for storage.
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
void fill_solid(struct CRGB *targetArray, int numToFill, const struct CRGB &color)
Fill a range of LEDs with a solid color.
TBlendType
Color interpolation options for palette.
@ NOBLEND
No interpolation between palette entries.
@ LINEARBLEND
Linear interpolation between palette entries, with wrap-around from end to the beginning again.
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Get a color from a palette.
@ HUE_PURPLE
Purple (270°)
const TProgmemRGBPalette16 RainbowStripeColors_p
HSV Rainbow colors with alternatating stripes of black.
const TProgmemRGBPalette16 CloudColors_p
Cloudy color palette.
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
const TProgmemRGBPalette16 RainbowColors_p
HSV Rainbow.
LIB8STATIC uint8_t random8()
Generate an 8-bit random number.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>
@ Gray
<div style='background:#808080;width:4em;height:4em;'></div>
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Representation of an RGB pixel (Red, Green, Blue)