-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathChristmas.h
More file actions
31 lines (23 loc) · 784 Bytes
/
Copy pathChristmas.h
File metadata and controls
31 lines (23 loc) · 784 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
#ifndef MODE_CHRISTMAS
#define MODE_CHRISTMAS
#include "Colors.h"
// ------------------------------------------------------------------
// FEATURE PROTOTYPES
// ------------------------------------------------------------------
void setupFeature();
void runFeature();
// ------------------------------------------------------------------
// FEATURE IMPLEMENTATIONS
// ------------------------------------------------------------------
void setupFeature()
{
}
int colorsIndex[] = {INDEX_COLOR_RED, INDEX_COLOR_GREEN, INDEX_COLOR_BLUE, INDEX_COLOR_PURPLE, INDEX_COLOR_YELLOW};
void runFeature()
{
int delay = random(50, 100);
int index = random(0, sizeof(colorsIndex) / sizeof(colorsIndex[0]));
int color = colorsIndex[index];
blinkColor(delay, color);
}
#endif