![]() |
HitLib 1.3.0
VEX V5 LED animation library for PROS
|
Describes a single named animation mode within a Profile. More...
#include <led_profile.hpp>
Public Attributes | |
| const char * | name |
| Label shown in debug output. | |
| uint8_t | priority |
| Higher value beats lower. Range: 0–255. | |
| ModeFn | onActivate |
| Called once when this mode becomes the winner. | |
| ModeFn | onTick |
Called every tick while active. May be nullptr. | |
Describes a single named animation mode within a Profile.
When multiple modes are active simultaneously on a strand the one with the highest priority wins. Ties are broken by insertion order (later wins).
onActivate is called once when the winning mode changes.onTick is called every refresh tick while the mode remains active.| const char* hitlib::ProfileMode::name |
Label shown in debug output.
| uint8_t hitlib::ProfileMode::priority |
Higher value beats lower. Range: 0–255.
| ModeFn hitlib::ProfileMode::onActivate |
Called once when this mode becomes the winner.
| ModeFn hitlib::ProfileMode::onTick |
Called every tick while active. May be nullptr.