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

◆ juggle()

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

Definition at line 123 of file demoreel100.h.

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

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

+ Here is the call graph for this function: