91{
92
93
94 static uint16_t sCIStart1, sCIStart2, sCIStart3, sCIStart4;
98 sLastms = ms;
101 uint32_t deltams1 = (deltams * speedfactor1) / 256;
102 uint32_t deltams2 = (deltams * speedfactor2) / 256;
103 uint32_t deltams21 = (deltams1 + deltams2) / 2;
104 sCIStart1 += (deltams1 *
beatsin88(1011,10,13));
105 sCIStart2 -= (deltams21 *
beatsin88(777,8,11));
106 sCIStart3 -= (deltams1 *
beatsin88(501,5,7));
107 sCIStart4 -= (deltams2 *
beatsin88(257,4,6));
108
109
111
112
117
118
120
121
123}
void pacifica_deepen_colors()
void pacifica_add_whitecaps()
void pacifica_one_layer(fl::CRGBPalette16 &p, uint16_t cistart, uint16_t wavescale, uint8_t bri, uint16_t ioff)
fl::CRGBPalette16 pacifica_palette_2
fl::CRGBPalette16 pacifica_palette_3
fl::CRGBPalette16 pacifica_palette_1
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NOEXCEPT
Fill a range of LEDs with a solid color.
#define GET_MILLIS
The a number of functions need access to a millisecond counter in order to keep time.
LIB8STATIC u16 beat16(accum88 beats_per_minute, u32 timebase=0) FL_NOEXCEPT
Generates a 16-bit "sawtooth" wave at a given BPM.
LIB8STATIC u16 beatsin88(accum88 beats_per_minute_88, 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.
LIB8STATIC u8 beatsin8(accum88 beats_per_minute, u8 lowest=0, u8 highest=255, u32 timebase=0, u8 phase_offset=0) FL_NOEXCEPT
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
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.
Representation of an 8-bit RGB pixel (Red, Green, Blue)