11#define PATTERN_END (-1)
28 void start()
override;
57 void tick()
override final;
67 void tick()
override final;
81 void tick()
override final;
A base class for LED blinker classes.
void set_state(bool state)
void set_enabled(bool state)
void blip(int duration=20)
An LED blinker class that blinks the LED 50% off, 50% on, at a given period.
void tick() override final
A blinker that blinks the LED according to a defined repeating pattern.
void set_pattern(int pattern[])
unsigned int pattern_ptr_
void tick() override final
A base class for periodic blinkers.
void set_period(unsigned int period)
A periodic blinker that defines both the on-ratio and the period length.
void set_ratio(unsigned int ratio)
void tick() override final
Automatic calling of the start() method at startup.