19 enum class Effect { Off, SolidColor, Rainbow, Chase, Blink, Breath, Larson };
21 explicit WS2812Animator(WS2812Strip& strip, uint32_t virtual_length = 0);
29 void SetEffect(Effect effect, uint32_t color = 0xFFFFFF);
32 void SetVirtualLength(uint32_t length);
35 void SetStep(uint16_t step);
36 uint16_t Step()
const;
45 bool initialized_ =
false;
46 uint32_t virtual_length_ = 0;
47 Effect effect_ = Effect::Off;
48 uint32_t color_ = 0xFFFFFF;
51 uint8_t brightness_ = 0;
C++ wrapper for the HF-WS2812 RMT LED driver.