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

◆ beat8()

LIB8STATIC u8 fl::beat8 ( accum88 beats_per_minute,
u32 timebase = 0 )

Generates an 8-bit "sawtooth" wave at a given BPM.

Parameters
beats_per_minutethe frequency of the wave, in decimal
timebasethe time offset of the wave from the millis() timer
Examples
Pacifica.ino.

Definition at line 51 of file beat.h.

51 {
52 return beat16(beats_per_minute, timebase) >> 8;
53}
LIB8STATIC u16 beat16(accum88 beats_per_minute, u32 timebase=0) FL_NOEXCEPT
Generates a 16-bit "sawtooth" wave at a given BPM.
Definition beat.h:41

Referenced by pacifica_add_whitecaps().

+ Here is the caller graph for this function: