HF-WS2812 Driver 0.1.0-dev
HF-WS2812 ESP32 RMT Driver
Loading...
Searching...
No Matches
ws2812_multi_animator.hpp
Go to the documentation of this file.
1#pragma once
2#include "ws2812_effects.hpp"
3#include <vector>
4
5#ifdef __cplusplus
11class WS2812MultiAnimator {
12public:
20 explicit WS2812MultiAnimator(const std::vector<WS2812Strip*>& strips, bool unified = true,
21 bool sync = true);
22
26 void SetEffect(WS2812Animator::Effect effect, uint32_t color = 0xFFFFFF);
27
35 void SetEffect(size_t index, WS2812Animator::Effect effect, uint32_t color = 0xFFFFFF);
36
40 void Tick();
41
42private:
44 std::vector<WS2812Animator> animators_;
46 bool sync_ = true;
48 uint16_t step_ = 0;
49};
50#endif // __cplusplus
LED animation effects for WS2812 strips.