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

◆ sinelon()

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

Definition at line 103 of file demoreel100.h.

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

+ Here is the call graph for this function: