12#define LED_TYPE WS2811
13#define COLOR_ORDER GRB
16#define UPDATES_PER_SECOND 100
69 static uint8_t startIndex = 0;
70 startIndex = startIndex + 1;
99 uint8_t secondHand = (millis() / 1000) % 60;
100 static uint8_t lastSecond = 99;
102 if( lastSecond != secondHand) {
103 lastSecond = secondHand;
121 for(
int i = 0; i < 16; ++i) {
150 green, green, black, black,
151 purple, purple, black, black,
152 green, green, black, black,
153 purple, purple, black, black );
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
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()
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
@ HUE_PURPLE
Purple (270°)
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NOEXCEPT
Fill a range of LEDs with a solid color.
#define TProgmemPalette16
Alias for TProgmemRGBPalette16.
#define FL_PROGMEM
PROGMEM keyword for storage.
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
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 fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
@ Gray
<div style='background:#808080;width:4em;height:4em;'></div>
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>