A base class for LED blinker classes.
More...
#include <sensesp/system/led_blinker.h>
A base class for LED blinker classes.
Definition at line 18 of file led_blinker.h.
◆ BaseBlinker()
sensesp::BaseBlinker::BaseBlinker |
( |
int | pin | ) |
|
|
inline |
◆ blip()
void sensesp::BaseBlinker::blip |
( |
int | duration = 20 | ) |
|
|
inline |
Flip the LED off and on for duration
milliseconds.
Definition at line 41 of file led_blinker.h.
◆ flip_state()
void sensesp::BaseBlinker::flip_state |
( |
| ) |
|
|
inline |
◆ set_enabled()
void sensesp::BaseBlinker::set_enabled |
( |
bool | state | ) |
|
|
inline |
◆ set_state()
void sensesp::BaseBlinker::set_state |
( |
bool | state | ) |
|
|
inline |
◆ tick()
virtual void sensesp::BaseBlinker::tick |
( |
| ) |
|
|
pure virtual |
Tick is called whenever the blinker is enabled or when it's time to change the LED state.
◆ enabled_
bool sensesp::BaseBlinker::enabled_ = true |
|
protected |
◆ event_
reactesp::Event* sensesp::BaseBlinker::event_ = NULL |
|
protected |
◆ pin_
int sensesp::BaseBlinker::pin_ |
|
protected |
◆ state_
bool sensesp::BaseBlinker::state_ = false |
|
protected |
◆ update_counter_
int sensesp::BaseBlinker::update_counter_ = 0 |
|
protected |
The documentation for this class was generated from the following file: