SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
|
An LED blinker class that blinks the LED 50% off, 50% on, at a given period. More...
#include <sensesp/system/led_blinker.h>
Public Member Functions | |
EvenBlinker (int pin, unsigned int period) | |
void | tick () override final |
Public Member Functions inherited from sensesp::PeriodicBlinker | |
PeriodicBlinker (int pin, unsigned int period) | |
void | set_period (unsigned int period) |
Public Member Functions inherited from sensesp::BaseBlinker | |
BaseBlinker (int pin) | |
void | set_state (bool state) |
void | flip_state () |
void | blip (int duration=20) |
void | set_enabled (bool state) |
Additional Inherited Members | |
Protected Attributes inherited from sensesp::PeriodicBlinker | |
unsigned int | period_ |
Protected Attributes inherited from sensesp::BaseBlinker | |
int | pin_ |
bool | enabled_ = true |
bool | state_ = false |
int | update_counter_ = 0 |
reactesp::Event * | event_ = NULL |
An LED blinker class that blinks the LED 50% off, 50% on, at a given period.
Definition at line 52 of file led_blinker.h.
sensesp::EvenBlinker::EvenBlinker | ( | int | pin, |
unsigned int | period ) |
Definition at line 86 of file led_blinker.cpp.
|
finaloverridevirtual |
Tick is called whenever the blinker is enabled or when it's time to change the LED state.
Implements sensesp::BaseBlinker.
Definition at line 89 of file led_blinker.cpp.