112 {
113
114 uint8_t BeatsPerMinute = 62;
116 uint8_t beat =
beatsin8(BeatsPerMinute, 64, 255);
117 for (uint16_t i = 0; i <
mNumLeds; i++) {
120 }
121 }
UINumberField palette("Palette", 0, 0, 2)
LIB8STATIC uint8_t beatsin8(accum88 beats_per_minute, uint8_t lowest=0, uint8_t highest=255, uint32_t timebase=0, uint8_t phase_offset=0)
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Get a color from a palette.
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).