89 if (
random8() < chanceOfGlitter) {
110 u8 BeatsPerMinute = 62;
113 for (u16 i = 0; i <
mNumLeds; i++) {
123 for (u16 i = 0; i < 8; i++) {
void rainbowWithGlitter()
UINumberField palette("Palette", 0, 0, 2)
void addGlitter(fract8 chanceOfGlitter, fl::span< CRGB > leds)
void juggle(fl::span< CRGB > leds)
void runPattern(fl::span< CRGB > leds)
void draw(DrawContext context) override
DemoReel100(u16 num_leds)
void rainbow(fl::span< CRGB > leds)
fl::string fxName() const override
void rainbowWithGlitter(fl::span< CRGB > leds)
void confetti(fl::span< CRGB > leds)
void bpm(fl::span< CRGB > leds)
u8 current_pattern_number
void sinelon(fl::span< CRGB > leds)
LIB8STATIC u8 beatsin8(accum88 beats_per_minute, u8 lowest=0, u8 highest=255, u32 timebase=0, u8 phase_offset=0) FL_NOEXCEPT
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
LIB8STATIC u16 beatsin16(accum88 beats_per_minute, u16 lowest=0, u16 highest=65535, u32 timebase=0, u16 phase_offset=0) FL_NOEXCEPT
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
void fill_rainbow(CRGB *targetArray, int numToFill, u8 initialhue, u8 deltahue)
Fill a range of LEDs with a rainbow of colors.
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
LIB8STATIC fl::u16 random16() FL_NOEXCEPT
Generate a 16-bit random number.
LIB8STATIC fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
u8 fract8
Fixed-Point Fractional Types.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
Base definition for an LED controller.
#define FASTLED_SHARED_PTR(type)
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>