-
Notifications
You must be signed in to change notification settings - Fork 24
/
Rainbow.h
34 lines (26 loc) · 862 Bytes
/
Rainbow.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
/*
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>.
Programs referenced in MEOPrograms by Mark Ortiz <github.com/MarkEMarkEMark>.
Portions adapted from Adafruit.
See README for complete attributions.
*/
#ifndef INCLUDE_G35_PROGRAMS_RAINBOW_H
#define INCLUDE_G35_PROGRAMS_RAINBOW_H
#include <LightProgram.h>
class Rainbow : public LightProgram {
public:
Rainbow(G35& g35);
uint32_t Do();
private:
uint32_t Wheel(uint16_t WheelPos);
uint32_t LineRG(uint16_t WheelPos);
uint32_t LineGB(uint16_t WheelPos);
uint32_t LineBR(uint16_t WheelPos);
uint8_t wait_;
uint8_t pattern_;
uint8_t step_;
};
#endif