SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::EvenBlinker Class Reference

An LED blinker class that blinks the LED 50% off, 50% on, at a given period. More...

#include <sensesp/system/led_blinker.h>

Inheritance diagram for sensesp::EvenBlinker:
[legend]

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)
 
void start () override
 
- Public Member Functions inherited from sensesp::Startable
 Startable (int priority=0)
 
const int get_start_priority ()
 
void set_start_priority (int priority)
 

Additional Inherited Members

- Static Public Member Functions inherited from sensesp::Startable
static void start_all ()
 
- 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
 
Reactionreaction_ = NULL
 

Detailed Description

An LED blinker class that blinks the LED 50% off, 50% on, at a given period.

Definition at line 54 of file led_blinker.h.

Constructor & Destructor Documentation

◆ EvenBlinker()

sensesp::EvenBlinker::EvenBlinker ( int  pin,
unsigned int  period 
)

Definition at line 83 of file led_blinker.cpp.

Member Function Documentation

◆ tick()

void sensesp::EvenBlinker::tick ( )
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 86 of file led_blinker.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: