ESPectro32 Library
Library for using ESPectro32 board
|
Represent LED. More...
#include <ESPectro32_LED.h>
Public Member Functions | |
ESPectro32_LED (uint8_t pin=ESPECTRO32_LED_PIN, bool activeHigh=false) | |
void | begin () |
Must be called first before anything else. | |
void | turnOn () |
void | turnOff () |
boolean | isOn () |
byte | getPin () |
void | toggle () |
void | blink (uint32_t interval=500, uint32_t count=UINT16_MAX) |
void | fade (uint32_t duration=2000, uint32_t count=UINT16_MAX) |
void | startAnimation () |
void | stopAnimation () |
bool | isAnimating () const |
void | setAnimation (ESPectro32_LED_AnimationType animType, uint32_t speed, uint32_t count=UINT16_MAX) |
void | setAnimationTimeout (unsigned long timeOut) |
Private Member Functions | |
ESPectro32_LED_Animator * | getAnimatorPtr () |
Private Attributes | |
uint8_t | pin_ |
bool | activeHigh_ |
ESPectro32_LED_Animator * | animator_ = NULL |
Represent LED.