esp32-sk6812/include/Animation/ConnectingAnimation.h

26 lines
429 B
C
Raw Normal View History

2019-12-02 22:42:31 +01:00
#pragma once
#include "Animation.h"
class ConnectingAnimation : public Animation
{
public:
ConnectingAnimation(Fader *fader);
void loop(uint64_t frame) override;
2019-12-03 22:09:55 +01:00
void stop(void) override
{
m_stopping = true;
}
void reset(void) override
{
m_stopping = false;
m_running = true;
}
2019-12-02 22:42:31 +01:00
private:
2019-12-03 22:09:55 +01:00
bool m_stopping;
2019-12-02 22:42:31 +01:00
};