Smart Poi 3.0.0
WiFi Connected LED POV Poi
Loading...
Searching...
No Matches
colourPalette_code.ino File Reference

Functions

void FillLEDsFromPaletteColors (uint8_t colorIndex)
 
void FillStripesFromPaletteColors (uint8_t colorIndex)
 
void FillPatternStripesFromPaletteColors (uint8_t colorIndex, uint8_t var)
 
void PaletteSetup ()
 
void ChangePalettePeriodically ()
 
void ChangePalettePeriodically2 ()
 
void ChangePalettePeriodically3 ()
 
void ChangeStripesPeriodically ()
 
void ChangePaletteEveryTime ()
 
void SetupTotallyRandomPalette ()
 
void SetupBlackAndWhiteStripedPalette ()
 
void SetupPurpleAndGreenPalette ()
 
void SetupVariablePalette (CRGB a, CRGB b, CRGB c, CRGB d)
 
void SetupVariableStripes (CRGB a, CRGB b, CRGB c, CRGB d)
 
void SetupVariablePalette3 (CRGB a, CRGB b, CRGB c)
 
void SetupVariablePalette5 (CRGB a, CRGB b, CRGB c, CRGB d, CRGB e)
 
void SetupVariablePalette6 (CRGB a, CRGB b, CRGB c, CRGB d, CRGB e, CRGB f)
 
void SetupVariablePalette7 (CRGB a, CRGB b, CRGB c, CRGB d, CRGB e, CRGB f, CRGB g)
 
void SetupRandomVariablePalette (CRGB a, CRGB b, CRGB c, CRGB d)
 
void SetupRandomVariablePalette2 (CRGB a, CRGB b, CRGB c, CRGB d)
 
void add_glitter ()
 
void funColourJam ()
 Implements the "Colour Jam" pattern.
 

Variables

const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM
 

Function Documentation

◆ add_glitter()

void add_glitter ( )
370{
371 int chance_of_glitter = 10; // percent of the time that we add glitter
372 int number_of_glitters = 5; // number of glitter sparkles to add
373
374 int r = random8(100);
375 if ( r < chance_of_glitter ) {
376 for ( int j = 0; j < number_of_glitters; j++) {
377 int pos = random16( NUM_LEDS);
378 leds[pos] = CRGB::White; // very bright glitter
379 }
380 }
381}
#define NUM_LEDS
Definition main.ino:57
CRGB leds[121]
Definition main.ino:60

References leds, and NUM_LEDS.

◆ ChangePaletteEveryTime()

void ChangePaletteEveryTime ( )
231{
232 paletteVar++;
233 ////Serial.println(paletteVar);
234 if ( paletteVar == 1) {
235 SetupVariablePalette(CRGB::Red, CRGB::Gray, CRGB::Blue, CRGB::Black);
236 }
237 if ( paletteVar == 2) {
238 SetupRandomVariablePalette(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
239 }
240 if ( paletteVar == 3) {
241 SetupVariablePalette(CRGB::Green, CRGB::Gray, CRGB::Pink, CRGB::Black);
242 }
243 if ( paletteVar == 4) {
244 SetupRandomVariablePalette(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
245 }
246 if ( paletteVar == 5) {
247 SetupVariablePalette(CRGB::Orange, CRGB::Gray, CRGB::Cyan, CRGB::Black);
248 }
249 if ( paletteVar == 6) {
250 SetupRandomVariablePalette(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
251 }
252 if ( paletteVar == 7) {
253 SetupVariablePalette(CRGB::Magenta, CRGB::Gray, CRGB::Yellow, CRGB::Black);
254 }
255 if ( paletteVar == 8) {
256 SetupRandomVariablePalette(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
257 }
258 if ( paletteVar == 9) {
259 SetupVariablePalette(CRGB::Blue, CRGB::Gray, CRGB::Green, CRGB::Black);
260 }
261 if ( paletteVar == 10) {
262 SetupRandomVariablePalette(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
263 }
264 if (paletteVar == 11) {
265 paletteVar = 0;
266 }
267
268
269}
void SetupRandomVariablePalette(CRGB a, CRGB b, CRGB c, CRGB d)
Definition colourPalette_code.ino:345
void SetupVariablePalette(CRGB a, CRGB b, CRGB c, CRGB d)
Definition colourPalette_code.ino:309
int paletteVar
Definition main.ino:149

References paletteVar, SetupRandomVariablePalette(), and SetupVariablePalette().

Here is the call graph for this function:

◆ ChangePalettePeriodically()

void ChangePalettePeriodically ( )
57{
58 uint8_t secondHand = (millis() / 1000) % 60;
59 static uint8_t lastSecond = 99;
60
61 if ( lastSecond != secondHand) {
62 lastSecond = secondHand;
63 //if( secondHand == 1) { SetupVariablePalette(CRGB::Red, CRGB::Gray, CRGB::Blue, CRGB::Black); }
64 if ( secondHand == 15) {
65 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
66 }
67 //if( secondHand == 20) { SetupVariablePalette(CRGB::Green, CRGB::Gray, CRGB::Pink, CRGB::Black); }
68 if ( secondHand == 25) {
69 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
70 }
71 //if( secondHand == 30) { SetupVariablePalette(CRGB::Orange, CRGB::Gray, CRGB::Cyan, CRGB::Black); }
72 if ( secondHand == 35) {
73 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
74 }
75 //if( secondHand == 40) { SetupVariablePalette(CRGB::Magenta, CRGB::Gray, CRGB::Yellow, CRGB::Black); }
76 if ( secondHand == 45) {
77 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
78 }
79 //if( secondHand == 50) { SetupVariablePalette(CRGB::Blue, CRGB::Gray, CRGB::Green, CRGB::Black); }
80 if ( secondHand == 55) {
81 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
82 }
83 }
84}
void SetupRandomVariablePalette2(CRGB a, CRGB b, CRGB c, CRGB d)
Definition colourPalette_code.ino:354

References SetupRandomVariablePalette2().

Here is the call graph for this function:

◆ ChangePalettePeriodically2()

void ChangePalettePeriodically2 ( )
88{
89 uint8_t secondHand = (millis() / 1000) % 60;
90 static uint8_t lastSecond = 99;
91
92 if ( lastSecond != secondHand) {
93 lastSecond = secondHand;
94 //if( secondHand == 1) { SetupVariablePalette(CRGB::Red, CRGB::Gray, CRGB::Blue, CRGB::Black); }
95 if ( secondHand == 15) {
96 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
97 }
98 //if( secondHand == 20) { SetupVariablePalette(CRGB::Green, CRGB::Gray, CRGB::Pink, CRGB::Black); }
99 if ( secondHand == 25) {
100 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
101 }
102 //if( secondHand == 30) { SetupVariablePalette(CRGB::Orange, CRGB::Gray, CRGB::Cyan, CRGB::Black); }
103 if ( secondHand == 35) {
104 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
105 }
106 //if( secondHand == 40) { SetupVariablePalette(CRGB::Magenta, CRGB::Gray, CRGB::Yellow, CRGB::Black); }
107 if ( secondHand == 45) {
108 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
109 }
110 //if( secondHand == 50) { SetupVariablePalette(CRGB::Blue, CRGB::Gray, CRGB::Green, CRGB::Black); }
111 if ( secondHand == 55) {
112 SetupRandomVariablePalette2(CRGB::Black, CRGB::Gray, CRGB::Black, CRGB::Gray);
113 }
114 }
115}

References SetupRandomVariablePalette2().

Here is the call graph for this function:

◆ ChangePalettePeriodically3()

void ChangePalettePeriodically3 ( )
118{
119 uint8_t secondHand = (millis() / 1000) % 120; //last number is number of seconds the whole thing lasts!
120 static uint8_t lastSecond = 121;
121
122 if ( lastSecond != secondHand) {
123 lastSecond = secondHand;
124 if ( secondHand == 1) {
125 SetupVariablePalette3(CRGB::Red, CRGB::Black, CRGB::Blue);
126 }
127 if ( secondHand == 10) {
128 SetupVariablePalette3(CRGB::Magenta, CRGB::Black, CRGB::Green);
129 }
130 if ( secondHand == 20) {
131 SetupVariablePalette3(CRGB::Cyan, CRGB::Black, CRGB::Yellow);
132 }
133 if ( secondHand == 30) {
134 SetupVariablePalette3(CRGB::Red, CRGB::Black, CRGB::Green);
135 }
136 if ( secondHand == 40) {
137 SetupVariablePalette3(CRGB::Cyan, CRGB::Black, CRGB::Magenta);
138 }
139 if ( secondHand == 50) {
140 SetupVariablePalette3(CRGB::Black, CRGB::Red, CRGB::Cyan);
141 }
142
143 if ( secondHand == 60) {
144 SetupVariablePalette(CRGB::Red, CRGB::Black, CRGB::Blue, CRGB::Black);
145 }
146 if ( secondHand == 70) {
147 SetupVariablePalette(CRGB::Cyan, CRGB::Black, CRGB::Yellow, CRGB::Black);
148 }
149 if ( secondHand == 80) {
150 SetupVariablePalette(CRGB::Red, CRGB::Black, CRGB::Green, CRGB::Black);
151 }
152 if ( secondHand == 90) {
153 SetupVariablePalette(CRGB::Cyan, CRGB::Black, CRGB::Magenta, CRGB::Black);
154 }
155 if ( secondHand == 100) {
156 SetupVariablePalette(CRGB::Green, CRGB::Black, CRGB::Blue, CRGB::Black);
157 }
158
159 if ( secondHand == 60) {
160 SetupVariablePalette5(CRGB::BlueViolet, CRGB::Black, CRGB::Amethyst, CRGB::Black, CRGB::Coral);
161 }
162 if ( secondHand == 70) {
163 SetupVariablePalette5(CRGB::Chocolate, CRGB::Black, CRGB::DarkCyan, CRGB::Black, CRGB::DarkGoldenrod);
164 }
165 if ( secondHand == 80) {
166 SetupVariablePalette5(CRGB::DarkOliveGreen, CRGB::DodgerBlue, CRGB::Green, CRGB::Black, CRGB::DarkOrchid);
167 }
168 if ( secondHand == 90) {
169 SetupVariablePalette5(CRGB::Lavender, CRGB::Black, CRGB::IndianRed, CRGB::Black, CRGB::FloralWhite);
170 }
171 if ( secondHand == 100) {
172 SetupVariablePalette5(CRGB::MediumTurquoise, CRGB::Black, CRGB::Blue, CRGB::Black, CRGB::Lime);
173 }
174 if ( secondHand == 110) {
175 //toggle between lines and zigzag pattern (using same palettes above!)
176 if (lines == false) {
177 lines = true;
178 }
179 else {
180 lines = false;
181 }
182 setting = 2;
183
184 }
185
186
187
188 }
189}
void SetupVariablePalette3(CRGB a, CRGB b, CRGB c)
Definition colourPalette_code.ino:323
void SetupVariablePalette5(CRGB a, CRGB b, CRGB c, CRGB d, CRGB e)
Definition colourPalette_code.ino:328
volatile int setting
Definition main.ino:154
boolean lines
Definition main.ino:143

References lines, setting, SetupVariablePalette(), SetupVariablePalette3(), and SetupVariablePalette5().

Referenced by funColourJam().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ChangeStripesPeriodically()

void ChangeStripesPeriodically ( )
192{
193 uint8_t secondHand = (millis() / 1000) % 60; //last number is number of seconds the whole thing lasts!
194 static uint8_t lastSecond = 99;
195
196 if ( lastSecond != secondHand) {
197 lastSecond = secondHand;
198 if ( secondHand == 1 ) {
199 SetupVariablePalette(CRGB::Red, CRGB::Black, CRGB::Yellow, CRGB::Black);
200 }
201 if ( secondHand == 10) {
202 SetupVariablePalette(CRGB::Red, CRGB::Black, CRGB::Blue, CRGB::Black);
203 }
204 if ( secondHand == 20) {
205 SetupVariablePalette(CRGB::Cyan, CRGB::Black, CRGB::Yellow, CRGB::Black);
206 }
207 if ( secondHand == 30) {
208 SetupVariablePalette(CRGB::Red, CRGB::Black, CRGB::Green, CRGB::Black);
209 }
210 if ( secondHand == 40) {
211 SetupVariablePalette(CRGB::Cyan, CRGB::Black, CRGB::Magenta, CRGB::Black);
212 }
213 if ( secondHand == 50) {
214 SetupVariablePalette(CRGB::Green, CRGB::Black, CRGB::Blue, CRGB::Black);
215 }
216 if ( secondHand == 59) {
217 setting++;
218 if (setting > 3) {
219 setting = 1;
220 }
221 }
222
223
224 }
225}

References setting, and SetupVariablePalette().

Referenced by funColourJam().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillLEDsFromPaletteColors()

void FillLEDsFromPaletteColors ( uint8_t colorIndex)
2{
3 uint8_t brightness = 255;
4
5 for ( int i = 0; i < NUM_LEDS; i++) {
6 leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending);
7 colorIndex += 3; //this is something to change the pattern nicely!
8 }
9
10}
TBlendType currentBlending
Definition main.ino:147
CRGBPalette16 currentPalette
Definition main.ino:146

References currentBlending, currentPalette, leds, and NUM_LEDS.

Referenced by funColourJam().

Here is the caller graph for this function:

◆ FillPatternStripesFromPaletteColors()

void FillPatternStripesFromPaletteColors ( uint8_t colorIndex,
uint8_t var )
24{
25 uint8_t brightness = 255;
26
27 for ( int i = 0; i < NUM_LEDS; i++) {
28 leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending);
29 colorIndex = colorIndex + var; //change this to change pattern nicely!!
30 }
31
32}

References currentBlending, currentPalette, leds, and NUM_LEDS.

Referenced by funColourJam().

Here is the caller graph for this function:

◆ FillStripesFromPaletteColors()

void FillStripesFromPaletteColors ( uint8_t colorIndex)
13{
14 uint8_t brightness = 255;
15
16 for ( int i = 0; i < NUM_LEDS; i++) {
17 leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending);
18 colorIndex = colorIndex + colorIndex % 4; //change this to change pattern nicely!!
19 }
20
21}

References currentBlending, currentPalette, leds, and NUM_LEDS.

Referenced by funColourJam().

Here is the caller graph for this function:

◆ funColourJam()

void funColourJam ( )

Implements the "Colour Jam" pattern.

This function generates a dynamic color pattern based on the current setting. It uses palettes and motion to create a visually appealing effect.

Parameters
None
Returns
None
Precondition
FastLED library is initialized and ready for use.
Postcondition
Updates the LED strip with a new color pattern.
Note
This function is called repeatedly to update the pattern.
Uses global variables such as setting, lines, upDown, motionSpeed, maxStartIndex, and minStartIndex.
Calls other functions such as ChangePalettePeriodically3(), FillLEDsFromPaletteColors(), ChangeStripesPeriodically(), and FillStripesFromPaletteColors().
427{
428 if (setting == 1)
429 {
430
431 if (lines == false)
432 {
434 static uint8_t startIndex = 0;
435 if (upDown == true)
436 {
437 startIndex = startIndex + motionSpeed;
438 FillLEDsFromPaletteColors(startIndex);
439 if (startIndex == maxStartIndex)
440 {
441 upDown = false;
442 }
443 }
444 else
445 {
446 startIndex = startIndex - motionSpeed;
447 FillLEDsFromPaletteColors(startIndex);
448 if (startIndex == minStartIndex)
449 {
450 upDown = true;
451 }
452 }
453
454 // add_glitter();
455
456 FastLED.show();
457 // FastLED.delay(1); // for 160mhz APA102 px<72 only
458 }
459 else
460 {
462 static uint8_t startIndex = 0;
463 startIndex = startIndex + motionSpeed; /* motion speed */
464 FillLEDsFromPaletteColors(startIndex);
465 if (startIndex == maxStartIndex)
466 {
467 startIndex = 0;
468 }
469 // add_glitter();
470 FastLED.show();
471 // FastLED.delay(1); // for 160mhz APA102 px<72 only
472 }
473 }
474
475 else if (setting == 2)
476 {
478 static uint8_t stripeIndex = 0;
479 stripeIndex = stripeIndex + 1;
480 FillStripesFromPaletteColors(stripeIndex);
481 ////Serial.println(startIndex);
482 if (stripeIndex > 15)
483 {
484 stripeIndex = 0;
485 }
486 // add_glitter();
487 FastLED.show();
488 // FastLED.delay(1); // for 160mhz APA102 px<72 only
489 }
490 else
491 {
493 static uint8_t stripeIndex2 = 0;
494 stripeIndex2 = stripeIndex2 + 1;
496 if (stripeIndex2 > 15)
497 {
498 stripeIndex2 = 0;
499 }
500 // add_glitter();
501 FastLED.show();
502 // FastLED.delay(1); // for 160mhz APA102 px<72 only
503
504 }
505}
void ChangePalettePeriodically3()
Definition colourPalette_code.ino:117
void FillPatternStripesFromPaletteColors(uint8_t colorIndex, uint8_t var)
Definition colourPalette_code.ino:23
void FillLEDsFromPaletteColors(uint8_t colorIndex)
Definition colourPalette_code.ino:1
void FillStripesFromPaletteColors(uint8_t colorIndex)
Definition colourPalette_code.ino:12
void ChangeStripesPeriodically()
Definition colourPalette_code.ino:191
int motionSpeed
Definition main.ino:151
int maxStartIndex
Definition main.ino:152
boolean upDown
Definition main.ino:142
int minStartIndex
Definition main.ino:153

References ChangePalettePeriodically3(), ChangeStripesPeriodically(), FillLEDsFromPaletteColors(), FillPatternStripesFromPaletteColors(), FillStripesFromPaletteColors(), lines, maxStartIndex, minStartIndex, motionSpeed, setting, and upDown.

Referenced by loop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PaletteSetup()

void PaletteSetup ( )
42 {
43 //currentPalette = RainbowColors_p; currentBlending = BLEND; //not great needs modification for best pov look
44 currentPalette = RainbowStripeColors_p; currentBlending = NOBLEND; //super awesome rainbows!
45 //currentPalette = RainbowStripeColors_p; currentBlending = BLEND; //also fantastic!
46 //SetupPurpleAndGreenPalette(); currentBlending = BLEND; //good one
47 //SetupTotallyRandomPalette(); currentBlending = BLEND; //too random
48 //SetupBlackAndWhiteStripedPalette(); currentBlending = NOBLEND; //striking...
49 //SetupBlackAndWhiteStripedPalette(); currentBlending = BLEND; //nice too...
50 //currentPalette = CloudColors_p; currentBlending = BLEND; //needs more contrast
51 //currentPalette = PartyColors_p; currentBlending = BLEND; //also needs contrast
52 //currentPalette = myRedWhiteBluePalette_p; currentBlending = NOBLEND; //yes yes yes it works
53 //currentPalette = myRedWhiteBluePalette_p; currentBlending = BLEND; //nice
54}

References currentBlending, and currentPalette.

◆ SetupBlackAndWhiteStripedPalette()

void SetupBlackAndWhiteStripedPalette ( )
284{
285 // 'black out' all 16 palette entries...
286 fill_solid( currentPalette, 16, CRGB::Black);
287 // and set every fourth one to white.
288 currentPalette[0] = CRGB::White;
289 currentPalette[4] = CRGB::White;
290 currentPalette[8] = CRGB::White;
291 currentPalette[12] = CRGB::White;
292
293}

References currentPalette.

◆ SetupPurpleAndGreenPalette()

void SetupPurpleAndGreenPalette ( )
297{
298 CRGB purple = CHSV( HUE_PURPLE, 255, 255);
299 CRGB green = CHSV( HUE_GREEN, 255, 255);
300 CRGB black = CRGB::Black;
301
302 currentPalette = CRGBPalette16(
303 green, green, black, black,
304 purple, purple, black, black,
305 green, green, black, black,
306 purple, purple, black, black );
307}
boolean black
Definition main.ino:135

References black, and currentPalette.

◆ SetupRandomVariablePalette()

void SetupRandomVariablePalette ( CRGB a,
CRGB b,
CRGB c,
CRGB d )
346{
347 CRGB rand1 = CHSV( random8(), 255, 255);
348 CRGB rand2 = CHSV( random8(), 255, 255);
349 CRGB rand3 = rand1 - rand2;
350 //function to mix up order of a, b, c, d here? if 1 currentPalette is order no.1 if 2 currentPalette is order no.2
351 currentPalette = CRGBPalette16(a, rand1, c, rand2, b, rand1, d, rand2, a, rand1, c, rand2, b, rand1, d, rand2);
352}
File a
Definition main.ino:44

References a, and currentPalette.

Referenced by ChangePaletteEveryTime().

Here is the caller graph for this function:

◆ SetupRandomVariablePalette2()

void SetupRandomVariablePalette2 ( CRGB a,
CRGB b,
CRGB c,
CRGB d )
355{
356 // 'black out' all 16 palette entries...
357 fill_solid( currentPalette, 16, CRGB::Black);
358 // and set every fourth one to whatever.
359 int r1 = random8(13);
360 int r2 = random8(13);
361 int r3 = random8(13);
362 int r4 = random8(13);
363 currentPalette[r1] = a;
364 currentPalette[r2] = b;
365 currentPalette[r3] = c;
366 currentPalette[r4] = d;
367}

References a, and currentPalette.

Referenced by ChangePalettePeriodically(), and ChangePalettePeriodically2().

Here is the caller graph for this function:

◆ SetupTotallyRandomPalette()

void SetupTotallyRandomPalette ( )
273{
274 for ( int i = 0; i < 16; i++) {
275 currentPalette[i] = CHSV( random8(), 255, random8());
276 }
277}

References currentPalette.

◆ SetupVariablePalette()

void SetupVariablePalette ( CRGB a,
CRGB b,
CRGB c,
CRGB d )
310{
311
312 currentPalette = CRGBPalette16(a, b, c, d, a, b, c, d, a, b, c, d, a, b, c, d);
313}

References a, and currentPalette.

Referenced by ChangePaletteEveryTime(), ChangePalettePeriodically3(), and ChangeStripesPeriodically().

Here is the caller graph for this function:

◆ SetupVariablePalette3()

void SetupVariablePalette3 ( CRGB a,
CRGB b,
CRGB c )
324{
325 currentPalette = CRGBPalette16(a, b, c, a, b, c, a, b, c, a, b, c, a, b, c, a);
326}

References a, and currentPalette.

Referenced by ChangePalettePeriodically3().

Here is the caller graph for this function:

◆ SetupVariablePalette5()

void SetupVariablePalette5 ( CRGB a,
CRGB b,
CRGB c,
CRGB d,
CRGB e )
329{
330 currentPalette = CRGBPalette16(a, b, c, d, e, a, b, c, d, e, a, b, c, d, e, a);
331}

References a, and currentPalette.

Referenced by ChangePalettePeriodically3().

Here is the caller graph for this function:

◆ SetupVariablePalette6()

void SetupVariablePalette6 ( CRGB a,
CRGB b,
CRGB c,
CRGB d,
CRGB e,
CRGB f )
334{
335 currentPalette = CRGBPalette16(a, b, c, d, e, f, a, b, c, d, e, f, a, b, c, d);
336}
File f
Definition main.ino:43

References a, currentPalette, and f.

◆ SetupVariablePalette7()

void SetupVariablePalette7 ( CRGB a,
CRGB b,
CRGB c,
CRGB d,
CRGB e,
CRGB f,
CRGB g )
339{
340 currentPalette = CRGBPalette16(a, b, c, d, e, f, g, a, b, c, d, e, f, g, a, b);
341}

References a, currentPalette, and f.

◆ SetupVariableStripes()

void SetupVariableStripes ( CRGB a,
CRGB b,
CRGB c,
CRGB d )
316{
317
318 for (int i = 0; i < NUM_LEDS; i++) {
319 leds[i] = a;
320 }
321}

References a, leds, and NUM_LEDS.

Variable Documentation

◆ PROGMEM

const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM
Initial value:
=
{
CRGB::Red,
CRGB::Gray,
CRGB::Blue,
CRGB::Black,
CRGB::Red,
CRGB::Gray,
CRGB::Blue,
CRGB::Black,
CRGB::Red,
CRGB::Red,
CRGB::Gray,
CRGB::Gray,
CRGB::Blue,
CRGB::Blue,
CRGB::Black,
CRGB::Black
}
389{
390 CRGB::Red,
391 CRGB::Gray, // 'white' is too bright compared to red and blue
392 CRGB::Blue,
393 CRGB::Black,
394
395 CRGB::Red,
396 CRGB::Gray,
397 CRGB::Blue,
398 CRGB::Black,
399
400 CRGB::Red,
401 CRGB::Red,
402 CRGB::Gray,
403 CRGB::Gray,
404 CRGB::Blue,
405 CRGB::Blue,
406 CRGB::Black,
407 CRGB::Black
408};