68 : phases(phases), phaseCount(count) {}
108 uint8_t currentPhase = 0;
109 uint32_t phaseStartMs = 0;
110 bool running =
false;
Driver for a single WS2812B-compatible LED strip on a VEX ADI port.
Definition led_strand.hpp:53
void stop()
Stop the sequence without advancing.
bool isRunning() const
Returns true if the sequence is currently running.
Definition led_sequencer.hpp:103
void update(LedStrand &strand)
Advance the sequence, call every tick from an onTick callback.
void start(LedStrand &strand)
Start the sequence from phase 0.
constexpr Sequencer(const Phase *phases, uint8_t count)
Construct a Sequencer from a static phase array.
Definition led_sequencer.hpp:67
Definition led_group.hpp:11
One phase in the animation sequence.
Definition led_sequencer.hpp:53
void(* startFn)(LedStrand &)
Called once when the phase begins.
Definition led_sequencer.hpp:55
uint32_t durationMs
How long this phase runs (milliseconds).
Definition led_sequencer.hpp:54