|
VLCB
|
class to encapsulate a non-blocking LED More...
#include <LED.h>
Public Types | |
| enum | Mode : byte { Off = 0 , On = 1 , Blinking_Off = 2 , Blinking_On = 3 , Pulsing = 5 , IsOn = 0x01 , IsBlinking = 0x02 , IsPulsing = 0x04 } |
Public Member Functions | |
| LED () | |
| class for individual LED with non-blocking control | |
| LED (byte pin, bool active=HIGH) | |
| void | setPin (byte pin, bool active=HIGH) |
| bool | getState () |
| void | on () |
| void | off () |
| void | toggle () |
| void | blink (unsigned int rate=BLINK_RATE) |
| void | pulse (unsigned int duration=PULSE_ON_TIME) |
| void | run () |
Protected Member Functions | |
| void | _update () |
Protected Attributes | |
| byte | _pin |
| byte | _mode |
| bool | _active |
| unsigned int | _interval |
| unsigned long | _timer_start |
class to encapsulate a non-blocking LED
| enum VLCB::LED::Mode : byte |
| VLCB::LED::LED | ( | ) |
class for individual LED with non-blocking control
|
explicit |
| void VLCB::LED::setPin | ( | byte | pin, |
| bool | active = HIGH ) |
| bool VLCB::LED::getState | ( | ) |
| void VLCB::LED::on | ( | ) |
| void VLCB::LED::off | ( | ) |
| void VLCB::LED::toggle | ( | ) |
| void VLCB::LED::blink | ( | unsigned int | rate = BLINK_RATE | ) |
| void VLCB::LED::pulse | ( | unsigned int | duration = PULSE_ON_TIME | ) |
| void VLCB::LED::run | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |