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

Base class of Neopixel RGB LED animation. You should provide callback for animUpdateCallback. More...

#include <ESPectro32_RGBLED_Animation.h>

Inheritance diagram for ESPectro32_RGBLED_Animation:
ESPectro32_RGBLED_FadeInOutAnimation ESPectro32_RGBLED_GlowingAnimation

Public Member Functions

 ESPectro32_RGBLED_Animation (ESPectro32_RGBLED &rgbLed, RgbLedColor_t &defaultColor)
 
void start ()
 
void start (Animator::AnimationUpdateCallback animUpdateCallback, Animator::AnimationFinishedCallback animFinishedCallback, uint16_t duration=0, uint16_t updateInterval=0)
 
void stop ()
 
void run ()
 
void onAnimationCompleted (Animator::AnimationFinishedCallback cb)
 
ESPectro32_RGBLEDRgbLed ()
 

Protected Member Functions

AnimatorgetAnimatorPtr ()
 

Protected Attributes

ESPectro32_RGBLEDrgbLed_
 
RgbLedColor_tdefaultColor_
 
Animatoranimator_ = NULL
 
Animator::AnimationFinishedCallback animCompletedCb_ = NULL
 
boolean animationPrevStarted_ = false
 
uint16_t animCompletedCount_ = 0
 
uint16_t animMaxCount_ = 0
 
bool forceStop_ = false
 

Detailed Description

Base class of Neopixel RGB LED animation. You should provide callback for animUpdateCallback.


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