-
Notifications
You must be signed in to change notification settings - Fork 10
/
MEOColorPhasing.h
45 lines (37 loc) · 987 Bytes
/
MEOColorPhasing.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
41
42
43
44
45
/*
G35: An Arduino library for GE Color Effects G-35 holiday lights.
Copyright © 2012 The G35 Authors. Use, modification, and distribution are
subject to the BSD license as described in the accompanying LICENSE file.
By Mike Tsao <http://github.com/sowbug>.
and Mark Ortiz
and Adafruit
See README for complete attributions.
*/
#ifndef INCLUDE_G35_PROGRAMS_MEO_COLORPHASING_H
#define INCLUDE_G35_PROGRAMS_MEO_COLORPHASING_H
#include <MEOLightProgram.h>
class MEOColorPhasing : public MEOLightProgram
{
public:
MEOColorPhasing(MEOG35& g35, uint8_t pattern);
uint32_t Do();
private:
uint8_t wait_;
float frequencyR_;
float frequencyG_;
float frequencyB_;
float phaseR_;
float phaseG_;
float phaseB_;
uint8_t center_;
uint8_t width_;
int fStep_;
int pStep_;
bool fForward_;
uint8_t turn_;
uint8_t pattern_;
bool grnOff_;
bool redOff_;
bool bluOff_;
};
#endif