-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathPulse.h
More file actions
28 lines (20 loc) · 669 Bytes
/
Pulse.h
File metadata and controls
28 lines (20 loc) · 669 Bytes
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
/*
G35: An Arduino library for GE Color Effects G-35 holiday lights.
Copyright © 2011 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>.
See README for complete attributions.
*/
#ifndef INCLUDE_G35_PROGRAMS_PULSE_H
#define INCLUDE_G35_PROGRAMS_PULSE_H
#include <LightProgram.h>
class Pulse : public LightProgram {
public:
Pulse(G35& g35);
uint32_t Do();
private:
uint8_t count_;
uint16_t sequence_;
static bool pulser(uint16_t sequence, color_t& color, uint8_t& intensity);
};
#endif // INCLUDE_G35_PROGRAMS_PULSE_H