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

◆ juggle()

void juggle ( )
Examples
DemoReel100.ino.

Definition at line 127 of file DemoReel100.ino.

127 {
128 // eight colored dots, weaving in and out of sync with each other
130 uint8_t dothue = 0;
131 for( int i = 0; i < 8; i++) {
132 leds[beatsin16( i+7, 0, NUM_LEDS-1 )] |= CHSV(dothue, 200, 255);
133 dothue += 32;
134 }
135}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
fl::hsv8 CHSV
Definition chsv.h:11
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.
Definition beat.h:84
unsigned char uint8_t
Definition s16x16x4.h:209

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: