forked from sowbug/G35Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MEOPrograms.cpp
31 lines (26 loc) · 1.13 KB
/
MEOPrograms.cpp
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
/*
G35: An Arduino library for GE Color Effects G-35 holiday lights.
Copyright © 20112 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>.
Programs referenced in MEOPrograms by Mark Ortiz <github.com/MarkEMarkEMark>.
See README for complete attributions.
*/
#include <MEOPrograms.h>
LightProgram* MEOProgramGroup::CreateProgram(G35& lights,
uint8_t program_index) {
return new Rainbow(lights);
// switch (program_index % ProgramCount) {
// case 0: return new MEOWhites(lights, pattern);
// case 1: return new MEORainbow(lights, pattern);
// case 2: return new MEORandomStrobe(lights, pattern);
// case 3: return new MEOSimplexNoise(lights, pattern);
// case 4: return new MEOSineWave(lights, pattern);
// case 5: return new MEOChasing(lights, pattern);
// case 6: return new MEOColorPhasing(lights, pattern);
// case 7: return new MEODither(lights, pattern);
// case 8: return new MEOOscillate(lights, pattern);
// }
// not reached
return NULL;
}