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

A base class for periodic blinkers. More...

#include <sensesp/system/led_blinker.h>

Inheritance diagram for sensesp::PeriodicBlinker:
[legend]

Public Member Functions

 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)
 
virtual void tick ()=0
 

Protected Attributes

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

A base class for periodic blinkers.

Definition at line 39 of file led_blinker.h.

Constructor & Destructor Documentation

◆ PeriodicBlinker()

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

Definition at line 83 of file led_blinker.cpp.

Member Function Documentation

◆ set_period()

void sensesp::PeriodicBlinker::set_period ( unsigned int period)
inline

Definition at line 42 of file led_blinker.h.

Member Data Documentation

◆ period_

unsigned int sensesp::PeriodicBlinker::period_
protected

Definition at line 45 of file led_blinker.h.


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