HitLib 1.3.0
VEX V5 LED animation library for PROS
Loading...
Searching...
No Matches
led_profile.hpp
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3
8
9namespace hitlib {
10
11class LedStrand;
12
18using ModeFn = void (*)(LedStrand& strand);
19
20// ============================================================================
21
39 const char* name;
40 uint8_t priority;
43};
44
45// ============================================================================
46
68struct Profile {
69 const char* name;
71 uint8_t modeCount;
72};
73
74} // namespace hitlib
Driver for a single WS2812B-compatible LED strip on a VEX ADI port.
Definition led_strand.hpp:53
Definition led_group.hpp:11
void(*)(LedStrand &strand) ModeFn
Forward declaration.
Definition led_profile.hpp:18
Describes a single named animation mode within a Profile.
Definition led_profile.hpp:38
uint8_t priority
Higher value beats lower. Range: 0–255.
Definition led_profile.hpp:40
ModeFn onTick
Called every tick while active. May be nullptr.
Definition led_profile.hpp:42
ModeFn onActivate
Called once when this mode becomes the winner.
Definition led_profile.hpp:41
const char * name
Label shown in debug output.
Definition led_profile.hpp:39
An immutable, statically-allocated collection of ProfileMode entries.
Definition led_profile.hpp:68
const ProfileMode * modes
Pointer to the mode array.
Definition led_profile.hpp:70
uint8_t modeCount
Number of entries in modes.
Definition led_profile.hpp:71
const char * name
Profile name (for display/debug).
Definition led_profile.hpp:69