50{
54
59
62
64 uint16_t deltams = ms - sLastMillis ;
65 sLastMillis = ms;
66 sPseudotime += deltams * msmultiplier;
68 uint16_t brightnesstheta16 = sPseudotime;
69
71 hue16 += hueinc16;
73
74 brightnesstheta16 += brightnessthetainc16;
75 uint16_t b16 = sin16( brightnesstheta16 ) + 32768;
76
79 bri8 += (255 - brightdepth);
80
81 CRGB newcolor =
CHSV( hue8, sat8, bri8);
82
84 pixelnumber = (
NUM_LEDS-1) - pixelnumber;
85
87 }
88}
CRGB & nblend(CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay)
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.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.