forked from sowbug/G35Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHalloweenPrograms.cpp
More file actions
25 lines (20 loc) · 768 Bytes
/
Copy pathHalloweenPrograms.cpp
File metadata and controls
25 lines (20 loc) · 768 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
/*
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 <https://github.com/sowbug>.
See README for complete attributions.
*/
#include <HalloweenPrograms.h>
LightProgram* HalloweenProgramGroup::CreateProgram(G35& lights,
uint8_t program_index) {
switch (program_index % ProgramCount) {
case 0: return new Eyes(lights);
case 1: return new Creepers(lights);
case 2: return new PumpkinChase(lights);
case 3: return new SpookySlow(lights);
case 4: return new SpookyFlicker(lights);
}
// not reached
return NULL;
}