45 {
46 fl::span<CRGB>
leds = ctx.leds;
47 fl::u32 now = ctx.now;
49 return;
50 }
51
52
53 fl::u32 ms = now;
56 u16 speedfactor1 =
beatsin16(3, 179, 269);
57 u16 speedfactor2 =
beatsin16(4, 179, 269);
58 fl::u32 deltams1 = (deltams * speedfactor1) / 256;
59 fl::u32 deltams2 = (deltams * speedfactor2) / 256;
60 fl::u32 deltams21 = (deltams1 + deltams2) / 2;
65
66
68
69
70
81
82
84
85
87}
void pacifica_deepen_colors()
void pacifica_add_whitecaps()
void pacifica_one_layer(fl::span< CRGB > leds, CRGBPalette16 &p, u16 cistart, u16 wavescale, u8 bri, u16 ioff) FL_NO_EXCEPT
CRGBPalette16 pacifica_palette_1
CRGBPalette16 pacifica_palette_3
CRGBPalette16 pacifica_palette_2
LIB8STATIC u16 beatsin88(accum88 beats_per_minute_88, 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.
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.
LIB8STATIC u8 beatsin8(accum88 beats_per_minute, u8 lowest=0, u8 highest=255, u32 timebase=0, u8 phase_offset=0) FL_NO_EXCEPT
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
LIB8STATIC u16 beat16(accum88 beats_per_minute, u32 timebase=0) FL_NO_EXCEPT
Generates a 16-bit "sawtooth" wave at a given BPM.
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NO_EXCEPT
Fill a range of LEDs with a solid color.