forked from jasoncoon/esp8266-fastled-webserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LED_Customization.h
85 lines (75 loc) · 2.42 KB
/
LED_Customization.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef _LED_CUSTOMIZATION_h
#define _LED_CUSTOMIZATION_h
#include "CustomPalettes.h"
// List of patterns to cycle through. Each is defined as a separate function below.
PatternAndNameList patterns = {
{ pride, "Pride" },
{ colorWaves, "Color Waves" },
// twinkle patterns
//{ rainbowTwinkles, "Rainbow Twinkles" },
{ snowTwinkles, "Snow Twinkles" },
//{ cloudTwinkles, "Cloud Twinkles" },
//{ incandescentTwinkles, "Incandescent Twinkles" },
// TwinkleFOX patterns
//{ ifusTwinkles, "IfusTwinkles"},
//{ retroC9Twinkles, "Retro C9 Twinkles" },
//{ redWhiteTwinkles, "Red & White Twinkles" },
//{ blueWhiteTwinkles, "Blue & White Twinkles" },
//{ redGreenWhiteTwinkles, "Red, Green & White Twinkles" },
//{ fairyLightTwinkles, "Fairy Light Twinkles" },
{ snow2Twinkles, "Snow 2 Twinkles" },
//{ hollyTwinkles, "Holly Twinkles" },
{ iceTwinkles, "Ice Twinkles" },
{ partyTwinkles, "Party Twinkles" },
//{ forestTwinkles, "Forest Twinkles" },
//{ lavaTwinkles, "Lava Twinkles" },
//{ fireTwinkles, "Fire Twinkles" },
//{ cloud2Twinkles, "Cloud 2 Twinkles" },
{ oceanTwinkles, "Ocean Twinkles" },
{ rainbow, "Rainbow" },
{ rainbowWithGlitter, "Rainbow With Glitter" },
{ rainbowSolid, "Solid Rainbow" },
//{ confetti, "Confetti" },
{ sinelon, "Sinelon" },
//{ bpm, "Beat" },
//{ juggle, "Juggle" },
//{ fire, "Fire" },
//{ water, "Water" },
{ showSolidSparkling, "Solid Color & Glitter" },
{ showSolidColor, "Solid Color" },
};
// list of pallette entries
const CRGBPalette16 palettes[] = {
RainbowColors_p,
RainbowStripeColors_p,
CloudColors_p,
LavaColors_p,
OceanColors_p,
ForestColors_p,
PartyColors_p,
HeatColors_p,
SolidRed_p,
SolidGreen_p,
SolidBlue_p,
SolidWhite_p,
SolidWarm_p,
};
// compiler will help ensure you have the same number of entries
const uint8_t paletteCount = ARRAY_SIZE(palettes);
// names of the palettes
const String paletteNames[paletteCount] = {
"Rainbow",
"Rainbow Stripe",
"Cloud",
"Lava",
"Ocean",
"Forest",
"Party",
"Heat",
"Solid Red",
"Solid Green",
"Solid Blue",
"Solid White",
"Solid Warm",
};
#endif