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

◆ juggle()

void fl::DemoReel100::juggle ( CRGB * leds)
inlineprivate

Definition at line 121 of file demoreel100.h.

121 {
122 // eight colored dots, weaving in and out of sync with each other
124 uint8_t dothue = 0;
125 for (uint16_t i = 0; i < 8; i++) {
126 leds[beatsin16(i + 7, 0, mNumLeds - 1)] |= CHSV(dothue, 200, 255);
127 dothue += 32;
128 }
129 }
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
uint16_t mNumLeds
Definition fx.h:53
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:939
void fadeToBlackBy(CRGB *leds, uint16_t num_leds, uint8_t fadeBy)

References beatsin16(), fl::fadeToBlackBy(), leds, and fl::Fx::mNumLeds.

+ Here is the call graph for this function: