-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClearAnimation.h
40 lines (37 loc) · 927 Bytes
/
ClearAnimation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _H_CLEAR_ANIM
#define _H_CLEAR_ANIM
#include <Adafruit_NeoPixel.h>
#include <TweenDuino.h>
#include "StripSegments.h"
#include "FrogSongAnim.h"
using namespace TweenDuino;
class ClearAnimation {
public:
ClearAnimation(Adafruit_NeoPixel&, strip_segments& segments);
void start();
void stop();
void update();
private:
bool running;
Adafruit_NeoPixel &strip;
const strip_segments& segments;
float splotch1[3];
float splotch2[3];
FrogSongAnim frogAnim;
float blipEvensBrightness;
float blipOddsBrightness;
Timeline blipEvens;
Timeline blipOdds;
unsigned long startOfAnim;
unsigned long blipEvenLast;
unsigned long blipOddLast;
unsigned long blipEvenNext;
unsigned long blipOddNext;
float thunderBrightness;
Timeline thunder;
float fadeBrightness;
Timeline fadeOut;
bool frog1Played[3];
bool frog2Played[3];
};
#endif