106{
107
108 uint8_t BeatsPerMinute = 62;
110 uint8_t beat =
beatsin8( BeatsPerMinute, 64, 255);
111 for(
int i = 0; i <
NUM_LEDS; i++) {
113 }
114}
UINumberField palette("Palette", 0, 0, 2)
RGB color palette with 16 discrete values.
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).