-
Notifications
You must be signed in to change notification settings - Fork 9
/
LightShow.h
36 lines (30 loc) · 1.01 KB
/
LightShow.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
#ifndef LIGHTSHOW_H
#define LIGHTSHOW_H
#include <Arduino.h>
#include "Config.h"
#include "Outputs.h"
class LightShow {
public:
LightShow();
void init();
void setLightsNormal();
void incrementRandom();
void setLightsRandom();
void setLightsHigh();
void checkSetLights();
void setLightsOff();
private:
bool DEBUG = false;
long int timeInState;
unsigned char outputValues[63] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
unsigned char outputDirection[63] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
unsigned char startLight = 0;
unsigned char finishLight = 0;
unsigned char incrementor = 5;
unsigned char currentStartLight = 0;
unsigned char currentFinishLight = 0;
bool doneSettingLights = true;
void setStartFinishLoops();
long lightShowStartTime = 10000;
};
#endif