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

◆ sinelon()

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

Definition at line 105 of file demoreel100.h.

105 {
106 // a colored dot sweeping back and forth, with fading trails
108 int pos = beatsin16(13, 0, mNumLeds - 1);
109 leds[pos] += CHSV(hue, 255, 192);
110 }
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
uint8_t pos
Definition Blur.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(), hue, leds, fl::Fx::mNumLeds, and pos.

+ Here is the call graph for this function: