74 : phases(phases), phaseCount(count) {}
128 uint32_t phaseStartMs;
136 uint32_t touches = 0;
138 int8_t indexOf(
const LedStrand& strand)
const;
Driver for a single WS2812B-compatible LED strip on a VEX ADI port.
Definition led_strand.hpp:53
void stop()
Stop the sequence on every strand without advancing.
bool isRunning() const
Returns true if the sequence is running on any strand.
static constexpr uint8_t MAX_STRANDS
Strands one Sequencer can run on at the same time.
Definition led_sequencer.hpp:52
void update(LedStrand &strand)
Advance the sequence, call every tick from an onTick callback.
void start(LedStrand &strand)
Start the sequence on strand from phase 0.
bool isRunning(const LedStrand &strand) const
Returns true if the sequence is running on strand.
constexpr Sequencer(const Phase *phases, uint8_t count)
Construct a Sequencer from a static phase array.
Definition led_sequencer.hpp:73
void stop(const LedStrand &strand)
Stop the sequence on strand only. See stop().
Definition led_group.hpp:12
One phase in the animation sequence.
Definition led_sequencer.hpp:59
void(* startFn)(LedStrand &)
Called once when the phase begins.
Definition led_sequencer.hpp:61
uint32_t durationMs
How long this phase runs (milliseconds).
Definition led_sequencer.hpp:60