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

◆ sinelon()

void sinelon ( )
Examples
DemoReel100.ino.

Definition at line 108 of file DemoReel100.ino.

109{
110 // a colored dot sweeping back and forth, with fading trails
112 int pos = beatsin16( 13, 0, NUM_LEDS-1 );
113 leds[pos] += CHSV( gHue, 255, 192);
114}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
uint8_t pos
Definition Blur.ino:11
uint8_t gHue
void fadeToBlackBy(CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
fl::hsv8 CHSV
Definition chsv.h:11
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

References beatsin16(), fadeToBlackBy(), gHue, leds, NUM_LEDS, and pos.

Referenced by fl::DemoReel100::runPattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: