#include <FastLED.h>
#define LED_PIN 5
#define NUM_LEDS 50
#define BRIGHTNESS 64
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define UPDATES_PER_SECOND 100
delay( 3000 );
}
{
static uint8_t startIndex = 0;
startIndex = startIndex + 1;
}
{
colorIndex += 3;
}
}
{
if( lastSecond != secondHand) {
lastSecond = secondHand;
}
}
{
for( int i = 0; i < 16; ++i) {
}
}
{
}
{
green, green, black, black,
purple, purple, black, black,
green, green, black, black,
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.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
@ 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>