FastLED 3.10.8
Loading...
Searching...
No Matches

◆ sinelon()

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

Definition at line 103 of file demoreel100.h.

103 {
104 // a colored dot sweeping back and forth, with fading trails
105 fadeToBlackBy(leds, 20);
106 int pos = beatsin16(13, 0, mNumLeds - 1);
107 leds[pos] += CHSV(hue, 255, 192);
108 }
CRGB leds[1]
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_NO_EXCEPT
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) FL_NO_EXCEPT

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

+ Here is the call graph for this function: