-
Notifications
You must be signed in to change notification settings - Fork 1
/
lightObject.h
40 lines (32 loc) · 1.14 KB
/
lightObject.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
/*
disco.h
*/
#ifndef lightObject_h
#define lightObject_h
#include <Arduino.h>
#include <DmxSimple.h>
class lightObject
{
/*------------------------------------------------------------------*/
private:
/*------------------------------------------------------------------*/
public:
/*------------------------------------------------------------------*/
lightObject();
bool _masterOnOff = false, _softOnOff = true;
unsigned long _timer; /* effect timmers */
void setTimer();
unsigned long readTimer();
void sendDMX(int aC, int aV);
void sendDMX(int aC, int aV, int bC, int bV);
void sendDMX(int aC, int aV, int bC, int bV, int cC, int cV);
void sendDMX(int aC, int aV, int bC, int bV, int cC, int cV, int dC, int dV);
void sendDMX(int aC, int aV, int bC, int bV, int cC, int cV, int dC, int dV, int eC, int eV);
void sendDMX(int aC, int aV, int bC, int bV, int cC, int cV, int dC, int dV, int eC, int eV, int fC, int fV);
void masterOn();
void masterOff();
void softOn() ;
void softOff();
void strobe(int onTime, int offTime);
};
#endif