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

◆ juggle()

void juggle ( )
Examples
DemoReel100.ino.

Definition at line 116 of file DemoReel100.ino.

116 {
117 // eight colored dots, weaving in and out of sync with each other
119 uint8_t dothue = 0;
120 for( int i = 0; i < 8; i++) {
121 leds[beatsin16( i+7, 0, NUM_LEDS-1 )] |= CHSV(dothue, 200, 255);
122 dothue += 32;
123 }
124}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
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:957
void fadeToBlackBy(CRGB *leds, uint16_t num_leds, uint8_t fadeBy)
Reduce the brightness of an array of pixels all at once.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

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: