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

◆ sinelon()

void sinelon ( )
Examples
DemoReel100.ino.

Definition at line 97 of file DemoReel100.ino.

98{
99 // a colored dot sweeping back and forth, with fading trails
101 int pos = beatsin16( 13, 0, NUM_LEDS-1 );
102 leds[pos] += CHSV( gHue, 255, 192);
103}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
uint8_t pos
Definition Blur.ino:11
uint8_t gHue
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.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

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: