-
Notifications
You must be signed in to change notification settings - Fork 10
/
MEORainbow.h
35 lines (27 loc) · 852 Bytes
/
MEORainbow.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
/*
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_RAINBOW_H
#define INCLUDE_G35_PROGRAMS_MEO_RAINBOW_H
#include <MEOLightProgram.h>
class MEORainbow : public MEOLightProgram
{
public:
MEORainbow(MEOG35& g35, uint8_t pattern);
uint32_t Do();
uint32_t Wheel(uint16_t WheelPos);
uint32_t LineRG(uint16_t WheelPos);
uint32_t LineGB(uint16_t WheelPos);
uint32_t LineBR(uint16_t WheelPos);
private:
uint8_t wait_;
uint8_t pattern_;
uint8_t step_;
};
#endif