SensESP 3.0.1
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)
 

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ EvenBlinker()

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

Definition at line 86 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 89 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: