firmwareSandsara
leds.h
Go to the documentation of this file.
1 CRGBPalette256 currentPalette;
2 TBlendType currentBlending;
3 
4 extern CRGBPalette256 myRedWhiteBluePalette;
5 extern const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM;
6 
7 //====Paletas para codigos de colores
8 DEFINE_GRADIENT_PALETTE( breathRed ) {
9  0, 0, 0, 0, //black
10  128, 255, 0, 0, //red
11  255, 0, 0, 0};
12 
13 DEFINE_GRADIENT_PALETTE( breathBlue ) {
14  0, 0, 0, 0, //black
15  128, 0, 0, 255, //azul
16  255, 0, 0, 0};
17 
18 DEFINE_GRADIENT_PALETTE( breathYellow ) {
19  0, 0, 0, 0, //black
20  128, 255, 255, 0, //yellow
21  255, 0, 0, 0};
22 
23 DEFINE_GRADIENT_PALETTE( breathOrange ) {
24  0, 0, 0, 0, //black
25  128, 255, 60, 0, //orange
26  255, 0, 0, 0};
27 
28 DEFINE_GRADIENT_PALETTE( solidWhite ) {
29  0, 255, 255, 184, //white
30  255, 255, 255, 184};
31 //====
32 //====Paleta dinamica====
33 byte bytes[12];
34 //====
35 uint8_t palletteColors1[64] = {0,68,3,86,
36 17,72,26,108,
37 34,70,48,126,
38 51,65,68,135,
39 68,57,86,140,
40 85,49,104,142,
41 102,42,120,142,
42 120,36,135,142,
43 136,31,152,139,
44 153,34,167,133,
45 170,52,182,121,
46 187,82,197,105,
47 204,119,209,83,
48 221,162,218,55,
49 238,207,225,28,
50 255,250,231,34};
51 
52 uint8_t palletteColors2[64] = {0,71,223,203,
53 17,104,225,193,
54 34,164,230,166,
55 51,212,233,138,
56 68,240,219,99,
57 85,251,197,51,
58 102,254,176,20,
59 120,254,136,29,
60 136,255,105,42,
61 153,255,88,53,
62 170,249,64,83,
63 187,229,56,117,
64 204,206,77,133,
65 221,165,120,154,
66 238,108,190,190,
67 255,92,219,204};
68 
69 uint8_t palletteColors3[64] = {
70  0,251,118,87,
71  42,253,89,98,
72  85,233,94,197,
73  127,107,62,243,
74  170,233,94,197,
75  212,253,89,98,
76  255,251,118,87
77 };
78 
79 uint8_t palletteColors4[64] = {
80  0,254,240,214,
81  85,255,175,178,
82  170,190,233,233,
83  255,254,240,214
84 };
85 
86 uint8_t palletteColors5[64] = {
87  0,20,247,247,
88  64,255,255,255,
89  127,208,0,64,
90  191,231,0,213,
91  255,20,247,247
92 };
93 
94 uint8_t palletteColors6[64] = {
95  0,255,51,6,
96  106,255,255,255,
97  212,255,6,83,
98  255,255,51,6
99 };
100 
101 uint8_t palletteColors7[64] = {
102  0,134,219,216,
103  42,252,76,97,
104  85,254,230,130,
105  127,255,106,90,
106  170,255,200,197,
107  212,253,181,123,
108  255,134,219,216
109 };
110 
111 uint8_t palletteColors8[64] = {
112  0,6,164,175,
113  127,216,235,203,
114  255,6,164,175
115 };
116 
117 uint8_t palletteColors9[64] = {
118  0,188,233,254,
119  85,253,221,234,
120  170,255,255,255,
121  255,188,233,254
122 };
123 
124 uint8_t palletteColors10[64] = {
125  0,214,242,230,
126  127,0,77,126,
127  255,214,242,230
128 };
129 
130 uint8_t palletteColors11[64] = {
131  0,251,232,89,
132  17,230,227,26,
133  34,164,217,37,
134  51,98,200,67,
135  68,58,177,94,
136  85,35,145,114,
137  102,32,115,122,
138  120,36,94,123,
139  136,50,66,132,
140  153,95,30,164,
141  170,136,14,156,
142  187,153,26,117,
143  204,178,41,98,
144  221,218,85,92,
145  238,243,149,88,
146  255,251,194,68
147 };
148 
149 uint8_t palletteColors12[64] = {
150  0,252,219,37,
151  17,251,201,36,
152  34,246,155,43,
153  51,228,99,67,
154  68,203,63,89,
155  85,175,34,111,
156  102,140,7,135,
157  120,99,0,148,
158  136,97,0,149,
159  153,132,4,138,
160  170,169,28,116,
161  187,199,60,92,
162  204,223,92,71,
163  221,244,142,48,
164  238,250,194,35,
165  255,251,220,40
166 };
167 
168 
169 uint8_t palletteColors13[64] = {
170  0,71,223,203,
171  17,104,225,193,
172  34,164,230,166,
173  51,212,233,138,
174  68,240,219,99,
175  85,251,197,51,
176  102,254,176,20,
177  120,254,136,29,
178  136,255,105,42,
179  153,255,88,53,
180  170,249,64,83,
181  187,229,56,117,
182  204,206,77,133,
183  221,165,120,154,
184  238,108,190,190,
185  255,92,219,204
186 };
187 
188 
189 uint8_t palletteColors14[64] = {
190  0,114,213,174,
191  17,123,216,173,
192  34,141,222,173,
193  51,161,228,173,
194  68,180,233,174,
195  85,199,240,173,
196  102,219,245,174,
197  120,237,251,174,
198  136,236,251,174,
199  153,219,246,174,
200  170,198,239,173,
201  187,180,234,173,
202  204,161,227,173,
203  221,141,221,173,
204  238,122,215,173,
205  255,118,214,175
206 };
207 
208 uint8_t palletteColors15[64] = {
209  0,199,255,220,
210  17,209,247,203,
211  34,219,239,187,
212  51,229,231,170,
213  68,240,224,153,
214  85,250,216,137,
215  102,250,199,132,
216  120,250,182,131,
217  136,249,163,129,
218  153,248,146,128,
219  170,247,132,128,
220  187,244,140,136,
221  204,238,163,151,
222  221,228,193,173,
223  238,213,228,199,
224  255,215,252,225
225 };
226 
227 
228 
229 const uint8_t gamma8[] = {
230  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
231  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
232  1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2,
233  2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5,
234  5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10,
235  10, 10, 11, 11, 11, 12, 12, 13, 13, 13, 14, 14, 15, 15, 16, 16,
236  17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 24, 24, 25,
237  25, 26, 27, 27, 28, 29, 29, 30, 31, 32, 32, 33, 34, 35, 35, 36,
238  37, 38, 39, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 50,
239  51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 66, 67, 68,
240  69, 70, 72, 73, 74, 75, 77, 78, 79, 81, 82, 83, 85, 86, 87, 89,
241  90, 92, 93, 95, 96, 98, 99,101,102,104,105,107,109,110,112,114,
242  115,117,119,120,122,124,126,127,129,131,133,135,137,138,140,142,
243  144,146,148,150,152,154,156,158,160,162,164,167,169,171,173,175,
244  177,180,182,184,186,189,191,193,196,198,200,203,205,208,210,213,
245  215,218,220,223,225,228,231,233,236,239,241,244,247,249,252,255 };
const uint8_t gamma8[]
Definition: leds.h:229
CRGBPalette256 currentPalette
Definition: leds.h:1
uint8_t palletteColors14[64]
Definition: leds.h:189
byte bytes[12]
Definition: leds.h:30
uint8_t palletteColors6[64]
Definition: leds.h:94
const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM
uint8_t palletteColors11[64]
Definition: leds.h:130
uint8_t palletteColors13[64]
Definition: leds.h:169
uint8_t palletteColors5[64]
Definition: leds.h:86
CRGBPalette256 myRedWhiteBluePalette
uint8_t palletteColors9[64]
Definition: leds.h:117
uint8_t palletteColors3[64]
Definition: leds.h:69
uint8_t palletteColors15[64]
Definition: leds.h:208
uint8_t palletteColors12[64]
Definition: leds.h:149
uint8_t palletteColors1[64]
Definition: leds.h:35
uint8_t palletteColors8[64]
Definition: leds.h:111
uint8_t palletteColors4[64]
Definition: leds.h:79
TBlendType currentBlending
Definition: leds.h:2
uint8_t palletteColors2[64]
Definition: leds.h:52
uint8_t palletteColors7[64]
Definition: leds.h:101
DEFINE_GRADIENT_PALETTE(breathRed)
Definition: leds.h:8
uint8_t palletteColors10[64]
Definition: leds.h:124