-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSoft.h
More file actions
36 lines (27 loc) · 858 Bytes
/
Copy pathSoft.h
File metadata and controls
36 lines (27 loc) · 858 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
29
30
31
32
33
34
35
36
#ifndef MODE_SOFT
#define MODE_SOFT
#include "Colors.h"
// ------------------------------------------------------------------
// FEATURE PROTOTYPES
// ------------------------------------------------------------------
void setupFeature();
void runFeature();
// ------------------------------------------------------------------
// FEATURE IMPLEMENTATIONS
// ------------------------------------------------------------------
int colorsIndex[] = {INDEX_COLOR_RED, INDEX_COLOR_GREEN, INDEX_COLOR_BLUE,
INDEX_COLOR_PURPLE, INDEX_COLOR_YELLOW, INDEX_COLOR_WHITE};
int getColorIndex()
{
int index = random(0, sizeof(colorsIndex) / sizeof(colorsIndex[0]));
return colorsIndex[index];
}
void setupFeature()
{
}
void runFeature()
{
selectColorByIndexMode(getColorIndex());
delay(1000 * 60 * 60 * 15); // 15 min
}
#endif