-
Notifications
You must be signed in to change notification settings - Fork 0
/
FavoritesCategory.ino
47 lines (43 loc) · 1.3 KB
/
FavoritesCategory.ino
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
37
38
39
40
41
42
43
44
45
46
47
void favorites_category(int patternMode)
{
globalStrings.categoryName = "FAVORITES";
patternSettings.displayPattern = patternSettings.favoritePattern[patternMode];
if (patternSettings.displayPattern == 0)
{
if (((millis() - globals.randomTime) > globals.randomInterval) && globals.randomMin != 0)
{
pickRandom();
}
patternSettings.displayPattern = patternSettings.randomPattern;
}
switch (patternSettings.favoriteMode[patternMode])
{
case 1: // BASIC
basic_category(patternSettings.displayPattern);
break;
case 2: // DECOR
decor_category(patternSettings.displayPattern);
break;
case 3: // PARTY
moving_colors_category(patternSettings.displayPattern);
break;
case 4: // ADVANCED
chill_category(patternSettings.displayPattern);
break;
case 5: // COMPLEX
decor_category(patternSettings.displayPattern);
break;
case 6: // SPECIAL
special_category(patternSettings.displayPattern);
break;
case 7: // SOUND REACTIVE
soundReactive_category(patternSettings.displayPattern);
break;
case 8: // LEGACY
legacy_category(patternSettings.displayPattern);
break;
case 9: // WEATHER REACTIVE
weatherReactive_category(patternSettings.displayPattern);
break;
}
}