1#ifndef SENSESP_SYSTEM_LED_BLINKER_H_
2#define SENSESP_SYSTEM_LED_BLINKER_H_
10#define PATTERN_END (-1)
20 void blip(
int duration = 20);
55 void tick()
override final;
64 RatioBlinker(
int pin,
unsigned int period,
float ratio = 0.);
65 void tick()
override final;
79 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.
EvenBlinker(int pin, unsigned int period)
void tick() override final
A blinker that blinks the LED according to a defined repeating pattern.
PatternBlinker(int pin, int pattern[])
void set_pattern(int pattern[])
unsigned int pattern_ptr_
void tick() override final
A base class for periodic blinkers.
PeriodicBlinker(int pin, unsigned int period)
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)
RatioBlinker(int pin, unsigned int period, float ratio=0.)
void tick() override final