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

◆ sinelon()

void fl::DemoReel100::sinelon ( fl::span< CRGB > leds)
inlineprivate

Definition at line 101 of file demoreel100.h.

101 {
102 // a colored dot sweeping back and forth, with fading trails
103 fadeToBlackBy(leds, 20);
104 int pos = beatsin16(13, 0, mNumLeds - 1);
105 leds[pos] += CHSV(hue, 255, 192);
106 }
fl::CRGB leds[NUM_LEDS]
uint8_t pos
Definition Blur.ino:11
u16 mNumLeds
Definition fx.h:53
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
fl::hsv8 CHSV
Definition chsv.h:11
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)

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

+ Here is the call graph for this function: