A representation of a custom LED animation.
More...
#include <animiation.h>
|
| std::function< Strip()> | update |
| | This function can be any callable that returns a sequence of LED colors.
|
| |
| unsigned | numLEDs |
| | Number of LEDs in the animation.
|
| |
| unsigned | offset |
| | Address of first LED.
|
| |
A representation of a custom LED animation.
◆ Animation() [1/2]
| argos_lib::led::Animation::Animation |
( |
| ) |
|
|
delete |
Delete default constructor because it is meaningless.
◆ Animation() [2/2]
| argos_lib::led::Animation::Animation |
( |
std::function< Strip()> | update, |
|
|
unsigned | numLEDs, |
|
|
unsigned | offset ) |
|
inline |
Construct a new Animation object.
- Parameters
-
| update | Function to call that generates the new LED states for this animation |
| numLEDs | Number of LEDs in the animation |
| offset | Address of first LED controlled by this animation |
◆ numLEDs
| unsigned argos_lib::led::Animation::numLEDs |
Number of LEDs in the animation.
◆ offset
| unsigned argos_lib::led::Animation::offset |
◆ update
| std::function<Strip()> argos_lib::led::Animation::update |
This function can be any callable that returns a sequence of LED colors.
The documentation for this struct was generated from the following file: