class to encapsulate a non-blocking LED
More...
#include <LED.h>
class to encapsulate a non-blocking LED
◆ Mode
| Enumerator |
|---|
| Off | 0 | |
| On | 1 | |
| Blinking_Off | 2 | |
| Blinking_On | 3 | |
| Pulsing | 5 | |
| IsOn | 0x01 | |
| IsBlinking | 0x02 | |
| IsPulsing | 0x04 | |
◆ LED() [1/2]
class for individual LED with non-blocking control
◆ LED() [2/2]
| VLCB::LED::LED |
( |
byte | pin, |
|
|
bool | active = HIGH ) |
|
explicit |
◆ setPin()
| void VLCB::LED::setPin |
( |
byte | pin, |
|
|
bool | active = HIGH ) |
◆ getState()
| bool VLCB::LED::getState |
( |
| ) |
|
◆ on()
◆ off()
◆ toggle()
| void VLCB::LED::toggle |
( |
| ) |
|
◆ blink()
| void VLCB::LED::blink |
( |
unsigned int | rate = BLINK_RATE | ) |
|
◆ pulse()
◆ run()
◆ _update()
| void VLCB::LED::_update |
( |
| ) |
|
|
protected |
◆ _pin
◆ _mode
◆ _active
◆ _interval
| unsigned int VLCB::LED::_interval |
|
protected |
◆ _timer_start
| unsigned long VLCB::LED::_timer_start |
|
protected |
The documentation for this class was generated from the following files: