#include <ws2812_multi_animator.hpp>
◆ WS2812MultiAnimator()
| WS2812MultiAnimator::WS2812MultiAnimator |
( |
const std::vector< WS2812Strip * > & |
strips, |
|
|
bool |
unified = true, |
|
|
bool |
sync = true |
|
) |
| |
|
explicit |
Construct from a list of strips.
- Parameters
-
| strips | Pointers to WS2812Strip objects. |
| unified | If true all strips share the longest length. |
| sync | If true keep animation steps in sync. |
◆ SetEffect() [1/2]
| void WS2812MultiAnimator::SetEffect |
( |
size_t |
index, |
|
|
WS2812Animator::Effect |
effect, |
|
|
uint32_t |
color = 0xFFFFFF |
|
) |
| |
Apply an effect to a single strip.
- Parameters
-
| index | Index of the strip. |
| effect | Desired animation effect. |
| color | Base colour for the effect. |
◆ SetEffect() [2/2]
Apply an effect to all managed strips.
◆ Tick()
| void WS2812MultiAnimator::Tick |
( |
| ) |
|
Advance all animations by one step.
The documentation for this class was generated from the following files: