8 #ifndef COMPONENTS_ESPECTRO32_SRC_ESPECTRO32_RGBLED_ANIMATION_H_
9 #define COMPONENTS_ESPECTRO32_SRC_ESPECTRO32_RGBLED_ANIMATION_H_
12 #include "ESPectro32_RGBLED.h"
15 #define DEBUG_RGBLED_ANIM 1
18 #define RGBLED_ANIM_DEBUG_PRINT(...) ESP_LOGI("ESP32_ANIM", __VA_ARGS__); //ESP_LOGD("ESP32_ANIM", __VA_ARGS__);
20 #define RGBLED_ANIM_DEBUG_PRINT(...)
33 void start(Animator::AnimationUpdateCallback animUpdateCallback, Animator::AnimationFinishedCallback animFinishedCallback,
34 uint16_t duration = 0, uint16_t updateInterval = 0);
37 void onAnimationCompleted(Animator::AnimationFinishedCallback cb) {
38 animCompletedCb_ = cb;
50 Animator::AnimationFinishedCallback animCompletedCb_ = NULL;
51 boolean animationPrevStarted_ =
false;
53 uint16_t animCompletedCount_ = 0, animMaxCount_ = 0;
54 bool forceStop_ =
false;
74 void start(uint16_t duration = 0, uint16_t count = 0);
94 void start(uint16_t duration = 0, uint16_t count = 0);
A class of Neopixel RGB LED glowing animation.
Definition: ESPectro32_RGBLED_Animation.h:83
void start(uint16_t duration=0, uint16_t count=0)
Start the animation.
Definition: ESPectro32_RGBLED_Animation.cpp:85
RGB LED class.
Definition: ESPectro32_RGBLED.h:20
Base class of Neopixel RGB LED animation. You should provide callback for animUpdateCallback.
Definition: ESPectro32_RGBLED_Animation.h:27
Definition: RgbLedColor.h:25
void start(uint16_t duration=0, uint16_t count=0)
Start the animation.
Definition: ESPectro32_RGBLED_Animation.cpp:138
Definition: Animator.h:15
A class of Neopixel RGB LED fading in/out animation.
Definition: ESPectro32_RGBLED_Animation.h:63