FastLED 3.9.15
Loading...
Searching...
No Matches

◆ juggle()

void juggle ( )
Examples
DemoReel100.ino.

Definition at line 125 of file DemoReel100.ino.

125 {
126 // eight colored dots, weaving in and out of sync with each other
128 uint8_t dothue = 0;
129 for( int i = 0; i < 8; i++) {
130 leds[beatsin16( i+7, 0, NUM_LEDS-1 )] |= CHSV(dothue, 200, 255);
131 dothue += 32;
132 }
133}
CRGB leds[NUM_LEDS]
#define NUM_LEDS
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
LIB8STATIC uint16_t beatsin16(accum88 beats_per_minute, uint16_t lowest=0, uint16_t highest=65535, uint32_t timebase=0, uint16_t phase_offset=0)
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
Definition lib8tion.h:819
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition hsv.h:15

References beatsin16(), fadeToBlackBy(), leds, and NUM_LEDS.

Referenced by fl::DemoReel100::runPattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: