ESPectro32 Library
Library for using ESPectro32 board
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ESPectro32_LED Class Reference

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_AnimatorgetAnimatorPtr ()
 

Private Attributes

uint8_t pin_
 
bool activeHigh_
 
ESPectro32_LED_Animatoranimator_ = NULL
 

Detailed Description

Represent LED.


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