#define FASTLED_INTERNAL
#include "FastLED.h"
#include "colorutils.h"
#include "colorpalettes.h"
#define DATA_PIN 12
#define NUM_LEDS 152
#define BRIGHTNESS 255
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];
#define FRAMES_PER_SECOND 120
uint16_t cycleTime = 10; // Number of seconds before next pattern. [random]
uint8_t gCurrentPatternNumber = 0; // Index number of which pattern is current
uint8_t gHue = 0; // rotating "base color" used by many of the patterns
#define ARRAY_SIZE(A) ( sizeof(A) / sizeof((A)[0]) )
#define floatingPin A7 // an ANALOG pin with Nothing connected to it (used for random number generation
// 2016 Christmas Tree With 152 WS2818B Leds
// 12/27/2021 Dim Led's from 70 to 40
// 5/5/24 Changed Define brightness to 120 and FastLED.setBrightness(15)
CRGBPalette16 currentPalette;
TBlendType currentBlending;
// extern CRGBPalette16 myVariousBluesPalette;
extern CRGBPalette16 myGoldBlueWhiteAquaPalette;
extern CRGBPalette16 myRedWhiteGreenBluePalette;
extern CRGBPalette16 myRedGoldBlueGreenPalette;
extern CRGBPalette16 myDarkOrangeCrimsonLimeVioletPalette;
extern CRGBPalette16 myRedWhiteBluePalette;
extern CRGBPalette16 myRedWhiteGreenPalette;
extern CRGBPalette16 myGoldRedGreenPalette;
extern CRGBPalette16 myGreenBlueYellowRedPalette;
extern CRGBPalette16 myGoldBlueWhiteAquaPalette;
extern CRGBPalette16 myRedWhiteGreenBluePalette;
extern CRGBPalette16 myRedGoldBlueGreenPalette;
extern CRGBPalette16 myDarkOrangeCrimsonLimeVioletPalette;
extern const TProgmemPalette16 myColors1Palette_p PROGMEM;
extern const TProgmemPalette16 myColors2Palette_p PROGMEM;
extern const TProgmemPalette16 myColors3Palette_p PROGMEM;
extern const TProgmemPalette16 myColors4Palette_p PROGMEM;
extern const TProgmemPalette16 myColors5Palette_p PROGMEM;
extern const TProgmemPalette16 myColors6Palette_p PROGMEM;
extern const TProgmemPalette16 myColors7Palette_p PROGMEM;
extern const TProgmemPalette16 myColors8Palette_p PROGMEM;
extern const TProgmemPalette16 myColors9Palette_p PROGMEM;
extern const TProgmemPalette16 myColors10Palette_p PROGMEM;
extern const TProgmemPalette16 myColors11Palette_p PROGMEM;
extern const TProgmemPalette16 myColors12Palette_p PROGMEM;
extern const TProgmemPalette16 myForestColors_p FL_PROGMEM;
extern const TProgmemPalette16 myFirstColors_p FL_PROGMEM;
extern const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM;
extern const TProgmemPalette16 myRedWhiteGreenPalette_p PROGMEM;
extern const TProgmemPalette16 myGoldRedGreenPalette_p PROGMEM;
extern const TProgmemPalette16 myGreenBlueYellowRedPalette_p PROGMEM;
extern const TProgmemPalette16 myGoldBlueWhiteAquaPalette_p PROGMEM;
extern const TProgmemPalette16 myRedWhiteGreenBluePalette_p PROGMEM;
extern const TProgmemPalette16 myGoldBlueGreenPalette_p PROGMEM;
extern const TProgmemPalette16 myDarkOrangeCrimsonLimeVioletPalette_p PROGMEM;
extern const TProgmemPalette16 myGoldRedGreenPalette_p PROGMEM;
extern const TProgmemPalette16 myGreenBlueYellowRedPalette_p PROGMEM;
extern const TProgmemPalette16 myVariousBluesPalette_p PROGMEM;
extern const TProgmemPalette16 myGoldBlueWhiteAquaPalette_p PROGMEM;
extern const TProgmemPalette16 myRedWhiteGreenBluePalette_p PROGMEM;
extern const TProgmemPalette16 myGoldBlueGreenPalette_p PROGMEM;
extern const TProgmemPalette16 myMidnightBlueDarkGreenMaroonPalette_p PROGMEM;
extern const TProgmemPalette16 myTealWhiteGoldenrodPalette_p PROGMEM;
extern const TProgmemPalette16 myIndigoBrownOrangeRedPalette_p PROGMEM;
extern const TProgmemPalette16 myTealSaddleBrownMediumVioletRedPalette_p PROGMEM;
extern const TProgmemPalette16 myDarkOrangeSeaGreenWhitePalette_p PROGMEM;
extern const TProgmemPalette16 myRoyalBlueOliveDarkGoldenrodPalette_p PROGMEM;
extern const TProgmemPalette16 myDarkCyanCrimsonAmethystPalette_p PROGMEM;
extern const TProgmemPalette16 myAquamarineDeepSkyBlueFuchsiaPalette_p PROGMEM;
extern const TProgmemPalette16 myFireBrickGoldGreenYellowPalette_p PROGMEM;
extern const TProgmemPalette16 myTurquoiseSiennaCrimsonPalette_p PROGMEM;
extern const TProgmemPalette16 myWhiteOliveNavyPalette_p PROGMEM;
extern const TProgmemPalette16 myMidnightBlueMediumOrchidMagentaPalette_p PROGMEM;
extern const TProgmemPalette16 mySeaGreenSalmonRoyalBluePalette_p PROGMEM;
extern const TProgmemPalette16 myIndigoDarkTurquoiseWhitePalette_p PROGMEM;
extern const TProgmemPalette16 mySalmonOrchidLimePalette_p PROGMEM;
extern const TProgmemPalette16 myMediumSpringGreenMoccasinTomatoPalette_p PROGMEM;
extern const TProgmemPalette16 myTealWhiteMediumVioletRedPalette_p PROGMEM;
extern const TProgmemPalette16 myDarkOrangeCrimsonLimeVioletPalette_p PROGMEM;
void setup() {
Serial.begin(115200); // Allows serial monitor output (check baud rate)
delay(3000); // power-up safety delay
FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
FastLED.setBrightness(BRIGHTNESS);
currentPalette = RainbowColors_p;
currentBlending = LINEARBLEND;
FastLED.clear();
FastLED.show();
pinMode(floatingPin, INPUT); // set analog pin as an input (used for random number generation)
}
//---------------------------------------------------------------
// List of patterns to cycle through. Each is defined as a separate function below.
typedef void (*SimplePatternList[])();
SimplePatternList gPatterns = {
rainbow,
rainbowWithGlitter,
confetti,
// sinelon,
sinelon_no_gap,
juggle,
bpm,
bmp2
};
// Do you like one pattern more then others? If so you can add it
// in the above list multiple times like "juggle" above. This way
// it will randomly be picked more often.
void loop()
{
EVERY_N_MILLISECONDS_I(timingEntropy, 1) {
for (uint8_t i = 0; i < 32; i++) {
random16_add_entropy (analogRead(floatingPin)); // randomize the random :o
timingEntropy.setPeriod(2268); // set time to get new randomness was 667
}
}
// Call the current pattern function once, updating the 'leds' array
gPatterns[gCurrentPatternNumber]();
// send the 'leds' array out to the actual LED strip
FastLED.show();
// insert a delay to keep the framerate modest
FastLED.delay(1000 / FRAMES_PER_SECOND);
// do some periodic updates
EVERY_N_MILLISECONDS( 20 ) {
gHue++; // slowly cycle the "base color" through the rainbow
}
// not using this next line anymore. Use below for random pattern change and timing
//EVERY_N_SECONDS( 10 ) { nextPattern(); } // change patterns periodically
EVERY_N_SECONDS_I( timingPattern, 1) {
nextPattern(); // Change patterns periodically
timingPattern.setPeriod(cycleTime); // set time to run pattern
}
}//end main void loop
//---------------------------------------------------------------
void nextPattern()
{
// Not using this anymore
// add one to the current pattern number, and wrap around at the end
//gCurrentPatternNumber = (gCurrentPatternNumber + 1) % ARRAY_SIZE( gPatterns);
// the above line has been replaced with this to randomly choose a pattern
gCurrentPatternNumber = random8( ARRAY_SIZE(gPatterns) ); // pick a random pattern
// this added to randomly choose how long until the next pattern change.
cycleTime = random16(5, 15); // random number from 10 to 20 [seconds] changed to 5 to 15
Serial.print("gCurrentPatternNumber = "); Serial.print(gCurrentPatternNumber);
Serial.print("\t cycleTime = "); Serial.println(cycleTime);
}
//===============================================================
// All the patterns to choose from
//---------------------------------------------------------------
void rainbow()
{
// FastLED's built-in rainbow generator
fill_rainbow( leds, NUM_LEDS, gHue, 7);
}
//---------------------------------------------------------------
void rainbowWithGlitter()
{
// built-in FastLED rainbow, plus some random sparkly glitter
rainbow();
addGlitter(80);
}
void addGlitter( fract8 chanceOfGlitter)
{
if ( random8() < chanceOfGlitter) {
leds[ random16(NUM_LEDS) ] += CRGB::White;
}
}
//---------------------------------------------------------------
void confetti()
{
// random colored speckles that blink in and fade smoothly
fadeToBlackBy( leds, NUM_LEDS, 10);
int pos = random16(NUM_LEDS);
leds[pos] += CHSV( gHue + random8(64), 200, 255);
}
//---------------------------------------------------------------
void sinelon()
{
// a colored dot sweeping back and forth, with fading trails
fadeToBlackBy( leds, NUM_LEDS, 20);
int pos = beatsin16( 13, 0, NUM_LEDS - 1 );
leds[pos] += CHSV( gHue, 255, 192);
}
void sinelon_no_gap()
{
// a colored dot sweeping back and forth, with fading trails
static int last_pos = 0;
fadeToBlackBy( leds, NUM_LEDS, 20);
int pos = beatsin16( 13, 0, NUM_LEDS-1 );
if (abs(pos - last_pos) > 10) {
// this is a really big gap: some other effect has been running
// rather than fill many LEDs suddenly with one colour
// let's just pretend this frame never happened
last_pos = pos;
}
do {
if (last_pos < pos) {
last_pos++;
} else if (last_pos > pos) {
last_pos--;
}
leds[last_pos] += CHSV( gHue, 255, 192);
} while (last_pos != pos);
}
//---------------------------------------------------------------
void bpm()
{
// colored stripes pulsing at a defined Beats-Per-Minute (BPM)
uint8_t BeatsPerMinute = 62;
CRGBPalette16 palette = RainbowColors_p;
uint8_t beat = beatsin8( BeatsPerMinute, 64, 255);
for ( int i = 0; i < NUM_LEDS; i++) { //9948
leds[i] = ColorFromPalette(palette, gHue + (i * 2), beat - gHue + (i * 10));
}
}
//---------------------------------------------------------------
void bmp2()
{
// colored stripes pulsing at a defined Beats-Per-Minute (BPM)
uint8_t BeatsPerMinute = 62;
CRGBPalette16 palette = OceanColors_p;
uint8_t beat = beatsin8( BeatsPerMinute, 64, 255);
for ( int i = 0; i < NUM_LEDS; i++) { //9948
leds[i] = ColorFromPalette(palette, gHue + (i * 2), beat - gHue + (i * 10));
}
}
//---------------------------------------------------------------
void juggle() {
// eight colored dots, weaving in and out of sync with each other
fadeToBlackBy( leds, NUM_LEDS, 20);
uint8_t dothue = 0;
for ( int i = 0; i < 8; i++) {
leds[beatsin16( i + 7, 0, NUM_LEDS - 1 )] |= CHSV(dothue, 200, 255);
dothue += 32;
}
ChangePalettePeriodically();
static uint16_t startIndex = 0;
startIndex = startIndex + 1; /* motion speed */
FillLEDsFromPaletteColors( startIndex);
FastLED.show();
FastLED.delay(1000 / FRAMES_PER_SECOND);
}
void FillLEDsFromPaletteColors( uint16_t colorIndex)
{
uint16_t brightness = 70; //changed from 65 5/5/24
for ( int i = 0; i < NUM_LEDS; i++) {
leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending);
colorIndex += 3;
}
}
void ChangePalettePeriodically()
{
uint16_t secondHand = (millis() / 5500) % 297; // changes time between changing programs
static uint16_t lastSecond = 297;
if ( lastSecond != secondHand) {
lastSecond = secondHand;
if ( secondHand == 0) {
currentPalette = RainbowColors_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 1) {
currentPalette = myRedWhiteBluePalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 2) {
currentPalette = myFirstColors_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 3) {
fill_solid( currentPalette, 16, CRGB::PaleGreen);
currentBlending = NOBLEND;
}
if ( secondHand == 4) {
SetupBlackAndSeaGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 5) {
SetupGreenAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 6) {
SetupCyanAndCrimsonStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 7) {
fill_solid( currentPalette, 16, CRGB::Navy);
currentBlending = NOBLEND;
}
if ( secondHand == 8) {
SetupPeruAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 9) {
SetupTurquoiseAndMoccasinStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 10) {
SetupDarkSlateBlueAndLightSeaGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 11) {
SetupBlackAndBlueVioletStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 12) {
fill_solid( currentPalette, 16, CRGB::MediumTurquoise);
currentBlending = NOBLEND;
}
if ( secondHand == 13) {
SetupDarkVioletAndDarkGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 14) {
SetupBlackAndRoyalBlueStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 15) {
SetupBlackAndMediumTurquoiseStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 16) {
fill_solid( currentPalette, 16, CRGB::Orchid);
currentBlending = NOBLEND;
}
if ( secondHand == 17) {
SetupDarkCyanAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 18) {
currentPalette = myFireBrickGoldGreenYellowPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 19) {
currentPalette = myMidnightBlueMediumOrchidMagentaPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 20) {
fill_solid( currentPalette, 16, CRGB::Blue);
currentBlending = NOBLEND;
}
if ( secondHand == 21) {
currentPalette = myVariousBluesPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 22) {
currentPalette = myRoyalBlueOliveDarkGoldenrodPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 23) {
SetupMoccasinAndLightSeaGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 24) {
fill_solid( currentPalette, 16, CRGB::Teal);
currentBlending = NOBLEND;
}
if ( secondHand == 25) {
SetupBlackAndDodgerBlueStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 26) {
currentPalette = myTealWhiteGoldenrodPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 27) {
currentPalette = myColors7Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 28) {
currentPalette = myTealSaddleBrownMediumVioletRedPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 29) {
fill_solid( currentPalette, 16, CRGB::MediumVioletRed);
currentBlending = NOBLEND;
}
if ( secondHand == 30) {
currentPalette = mySeaGreenSalmonRoyalBluePalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 31) {
SetupRedAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 32) {
SetupBlackAndRoyalBlueStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 33) {
fill_solid( currentPalette, 16, CRGB::Turquoise);
currentBlending = NOBLEND;
}
if ( secondHand == 34) {
currentPalette = myColors6Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 35) {
SetupGreenAndOrangeStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 36) {
SetupFuchsiaAndForestGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 37) {
currentPalette = myIndigoDarkTurquoiseWhitePalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 38) {
currentPalette = myColors4Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 39) {
currentPalette = OceanColors_p;
currentBlending = NOBLEND;
}
if ( secondHand == 40) {
fill_solid( currentPalette, 16, CRGB::Lime);
currentBlending = NOBLEND;
}
if ( secondHand == 41) {
SetupLimeAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 42) {
fill_solid( currentPalette, 16, CRGB::MediumSeaGreen);
currentBlending = NOBLEND;
}
if ( secondHand == 43) {
SetupBlackAndDarkSeaGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 44) {
fill_solid( currentPalette, 16, CRGB::MediumSlateBlue);
currentBlending = NOBLEND;
}
if ( secondHand == 45) {
currentPalette = myDarkOrangeSeaGreenWhitePalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 46) {
SetupBlackAndPeruStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 47) {
SetupDeepPinkAndAquaStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 48) {
fill_solid( currentPalette, 16, CRGB::White);
currentBlending = NOBLEND;
}
if ( secondHand == 49) {
SetupGoldAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 50) {
SetupTealAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 51) {
SetupBlackAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 52) {
SetupDeepPinkAndAquaStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 53) {
fill_solid( currentPalette, 16, CRGB::Crimson);
currentBlending = NOBLEND;
}
if ( secondHand == 54) {
currentPalette = myGoldBlueWhiteAquaPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 55) {
currentPalette = myDarkOrangeCrimsonLimeVioletPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 56) {
SetupBlackAndGreenYellowStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 57) {
SetupAquaAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 58) {
SetupMagentaAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 59) {
fill_solid( currentPalette, 16, CRGB::Aqua);
currentBlending = NOBLEND;
}
if ( secondHand == 60) {
SetupRedAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 61) {
SetupGoldAndGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 62) {
SetupBlackAndLimeStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 63) {
SetupRedAndBlueStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 64) {
fill_solid( currentPalette, 16, CRGB::White);
currentBlending = NOBLEND;
}
if ( secondHand == 65) {
SetupGoldAndBlueStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 66) {
currentPalette = RainbowStripeColors_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 67) {
fill_solid( currentPalette, 16, CRGB::Gold);
currentBlending = NOBLEND;
}
if ( secondHand == 68) {
SetupRedAndRedStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 69) {
fill_solid( currentPalette, 16, CRGB::LightCoral);
currentBlending = NOBLEND;
}
if ( secondHand == 70) {
SetupRedAndGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 71) {
SetupBlackAndDarkOrchidStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 72) {
SetupTomatoAndTealStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 73) {
currentPalette = myRedWhiteGreenBluePalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 74) {
currentPalette = RainbowStripeColors_p;
currentBlending = NOBLEND;
}
if ( secondHand == 75) {
fill_solid( currentPalette, 16, CRGB::Navy);
currentBlending = NOBLEND;
}
if ( secondHand == 76) {
SetupBlackAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 77) {
fill_solid( currentPalette, 16, CRGB::DarkTurquoise);
currentBlending = NOBLEND;
}
if ( secondHand == 78) {
SetupBlackAndAquaStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 79) {
currentPalette = myColors9Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 80) {
fill_solid( currentPalette, 16, CRGB::Yellow);
currentBlending = NOBLEND;
}
if ( secondHand == 81) {
SetupRedAndGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 82) {
currentPalette = myGoldRedGreenPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 83) {
currentPalette = myGoldBlueGreenPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 84) {
currentPalette = myColors5Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 85) {
currentPalette = PartyColors_p;
currentBlending = NOBLEND;
}
if ( secondHand == 86) {
fill_solid( currentPalette, 16, CRGB::Green);
currentBlending = NOBLEND;
}
if ( secondHand == 87) {
SetupGreenAndOrangeStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 88) {
SetupGoldAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 89) {
currentPalette = RainbowStripeColors_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 90) {
fill_solid( currentPalette, 16, CRGB::LightCoral);
currentBlending = NOBLEND;
}
if ( secondHand == 91) {
SetupGreenAndBlueStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 92) {
currentPalette = RainbowColors_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 93) {
currentPalette = myRedWhiteGreenBluePalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 94) {
currentPalette = myRedWhiteBluePalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 95) {
SetupTotallyRandomPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 96) {
fill_solid( currentPalette, 16, CRGB::DarkOrange);
currentBlending = NOBLEND;
}
if ( secondHand == 97) {
currentPalette = myColors12Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 98) {
currentPalette = myTealSaddleBrownMediumVioletRedPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 99) {
SetupSpringGreenAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 100) {
SetupRedAndRedStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 101) {
SetupGoldAndBlueStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 102) {
SetupBlackAndMediumTurquoiseStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 103) {
fill_solid( currentPalette, 16, CRGB::SkyBlue);
currentBlending = NOBLEND;
}
if ( secondHand == 104) {
currentPalette = myMidnightBlueDarkGreenMaroonPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 105) {
SetupBlackAndLimeStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 106) {
currentPalette = PartyColors_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 107) {
currentPalette = myDarkOrangeCrimsonLimeVioletPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 108) {
SetupDodgerBlueAndOrangeRedStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 109) {
fill_solid( currentPalette, 16, CRGB::Gold);
currentBlending = NOBLEND;
}
if ( secondHand == 110) {
SetupGoldAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 111) {
SetupGreenAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 112) {
currentPalette = myIndigoBrownOrangeRedPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 113) {
currentPalette = myMidnightBlueMediumOrchidMagentaPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 114) {
fill_solid( currentPalette, 16, CRGB::Sienna);
currentBlending = NOBLEND;
}
if ( secondHand == 115) {
currentPalette = myTealWhiteMediumVioletRedPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 116) {
SetupMediumPurpleAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 117) {
SetupBlackAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 118) {
fill_solid( currentPalette, 16, CRGB::GreenYellow);
currentBlending = NOBLEND;
}
if ( secondHand == 119) {
SetupGoldAndGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 120) {
SetupGoldAndBlueStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 121) {
currentPalette = myColors1Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 122) {
SetupRedAndBlueStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 123) {
fill_solid( currentPalette, 16, CRGB::RoyalBlue);
currentBlending = NOBLEND;
}
if ( secondHand == 124) {
SetupTotallyRandomPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 125) {
currentPalette = myMidnightBlueDarkGreenMaroonPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 126) {
currentPalette = myColors3Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 127) {
fill_solid( currentPalette, 16, CRGB::Orange);
currentBlending = NOBLEND;
}
if ( secondHand == 128) {
currentPalette = myRedWhiteBluePalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 129) {
currentPalette = myGreenBlueYellowRedPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 130) {
SetupAquaAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 131) {
fill_solid( currentPalette, 16, CRGB::DeepPink);
currentBlending = NOBLEND;
}
if ( secondHand == 132) {
currentPalette = mySeaGreenSalmonRoyalBluePalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 133) {
SetupDodgerBlueAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 134) {
SetupOrangeRedAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 135) {
currentPalette = myColors11Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 136) {
currentPalette = RainbowStripeColors_p;
currentBlending = NOBLEND;
}
if ( secondHand == 137) {
fill_solid( currentPalette, 16, CRGB::Red);
currentBlending = NOBLEND;
}
if ( secondHand == 138) {
currentPalette = myGoldBlueGreenPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 139) {
currentPalette = myAquamarineDeepSkyBlueFuchsiaPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 140) {
currentPalette = myWhiteOliveNavyPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 141) {
fill_solid( currentPalette, 16, CRGB::SteelBlue);
currentBlending = NOBLEND;
}
if ( secondHand == 142) {
currentPalette = myRedWhiteGreenPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 143) {
SetupBlueVioletAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 144) {
currentPalette = myColors8Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 145) {
fill_solid( currentPalette, 16, CRGB::Aqua);
currentBlending = NOBLEND;
}
if ( secondHand == 146) {
SetupGreenAndBlueStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 147) {
SetupMagentaAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 148) {
currentPalette = myFireBrickGoldGreenYellowPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 149) {
currentPalette = myMediumSpringGreenMoccasinTomatoPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 150) {
fill_solid( currentPalette, 16, CRGB::Cornsilk);
currentBlending = NOBLEND;
}
if ( secondHand == 151) {
currentPalette = myMediumSpringGreenMoccasinTomatoPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 152) {
currentPalette = myGoldRedGreenPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 153) {
currentPalette = CloudColors_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 154) {
SetupBlackAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 155) {
fill_solid( currentPalette, 16, CRGB::Salmon);
currentBlending = NOBLEND;
}
if ( secondHand == 156) {
SetupBlackAndDarkGoldenrodStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 157) {
currentPalette = OceanColors_p;
currentBlending = NOBLEND;
}
if ( secondHand == 158) {
SetupDarkSeaGreenAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 159) {
SetupGreenYellowAndBlueVioletStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 160) {
SetupGoldAndMidnightBlueStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 161) {
SetupGoldAndMidnightBlueStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 162) {
fill_solid( currentPalette, 16, CRGB::Green);
currentBlending = NOBLEND;
}
if ( secondHand == 163) {
currentPalette = myRedWhiteBluePalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 164) {
fill_solid( currentPalette, 16, CRGB::Pink);
currentBlending = NOBLEND;
}
if ( secondHand == 165) {
currentPalette = myDarkCyanCrimsonAmethystPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 166) {
SetupRoyalBlueAndSiennaStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 167) {
currentPalette = myColors10Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 168) {
SetupDarkCyanAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 169) {
SetupTurquoiseAndTomatoStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 170) {
SetupFuchsiaAndForestGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 171) {
fill_solid( currentPalette, 16, CRGB::SaddleBrown);
currentBlending = NOBLEND;
}
if ( secondHand == 172) {
SetupBlackAndDodgerBlueStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 173) {
SetupGreenYellowAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 174) {
SetupOrchidAndOliveStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 175) {
SetupBlackAndGreenYellowStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 176) {
currentPalette = myColors3Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 177) {
fill_solid( currentPalette, 16, CRGB::Tomato);
currentBlending = NOBLEND;
}
if ( secondHand == 178) {
SetupTotallyRandomPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 179) {
SetupSeaGreenAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 180) {
SetupBlackAndDarkCyanStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 181) {
SetupLimeAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 182) {
fill_solid( currentPalette, 16, CRGB::White);
currentBlending = NOBLEND;
}
if ( secondHand == 183) {
currentPalette = myGreenBlueYellowRedPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 184) {
currentPalette = myColors9Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 185) {
currentPalette = myGoldRedGreenPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 186) {
currentPalette = myWhiteOliveNavyPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 187) {
fill_solid( currentPalette, 16, CRGB::SpringGreen);
currentBlending = NOBLEND;
}
if ( secondHand == 188) {
SetupMoccasinAndOliveStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 189) {
currentPalette = myColors5Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 190) {
SetupMintCreamAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 191) {
currentPalette = myColors11Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 192) {
SetupRedAndRedStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 193) {
fill_solid( currentPalette, 16, CRGB::Violet);
currentBlending = NOBLEND;
}
if ( secondHand == 194) {
SetupBlackAndGoldenrodStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 195) {
currentPalette = myRoyalBlueOliveDarkGoldenrodPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 196) {
SetupBlackAndTealStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 197) {
SetupCyanAndCrimsonStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 198) {
currentPalette = myGoldBlueGreenPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 199) {
fill_solid( currentPalette, 16, CRGB::LemonChiffon);
currentBlending = NOBLEND;
}
if ( secondHand == 200) {
SetupTurquoiseAndMoccasinStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 201) {
currentPalette = myIndigoDarkTurquoiseWhitePalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 202) {
SetupYellowAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 203) {
currentPalette = myRedWhiteBluePalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 204) {
fill_solid( currentPalette, 16, CRGB::OliveDrab);
currentBlending = NOBLEND;
}
if ( secondHand == 205) {
SetupBlackAndTurquoiseStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 206) {
currentPalette = myColors7Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 207) {
currentPalette = mySalmonOrchidLimePalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 208) {
SetupTomatoAndTealStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 209) {
SetupBlackAndChartreuseStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 210) {
fill_solid( currentPalette, 16, CRGB::YellowGreen);
currentBlending = NOBLEND;
}
if ( secondHand == 211) {
currentPalette = myAquamarineDeepSkyBlueFuchsiaPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 212) {
SetupMoccasinAndLightSeaGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 213) {
SetupGreenAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 214) {
SetupDarkTurquoiseAndLightSeaGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 215) {
fill_solid( currentPalette, 16, CRGB::OldLace);
currentBlending = NOBLEND;
}
if ( secondHand == 216) {
SetupTealAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 217) {
SetupDodgerBlueAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 218) {
SetupBlackAndDarkCyanStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 219) {
fill_solid( currentPalette, 16, CRGB::Moccasin);
currentBlending = NOBLEND;
}
if ( secondHand == 220) {
SetupMintCreamAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 221) {
SetupHotPinkAndLightSeaGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 222) {
currentPalette = RainbowColors_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 223) {
fill_solid( currentPalette, 16, CRGB::Peru);
currentBlending = NOBLEND;
}
if ( secondHand == 224) {
SetupBlackAndDarkVioletStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 225) {
SetupDarkVioletAndDarkGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 226) {
currentPalette = myGreenBlueYellowRedPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 227) {
SetupOrangeRedAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 228) {
SetupBlackAndTealStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 229) {
fill_solid( currentPalette, 16, CRGB::Plum);
currentBlending = NOBLEND;
}
if ( secondHand == 230) {
currentPalette = myColors8Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 231) {
currentPalette = myColors2Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 232) {
SetupGoldAndGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 233) {
fill_solid( currentPalette, 16, CRGB::Linen);
currentBlending = NOBLEND;
}
if ( secondHand == 234) {
SetupRedAndGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 235) {
SetupBlackAndPeruStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 236) {
fill_solid( currentPalette, 16, CRGB::Gold);
currentBlending = NOBLEND;
}
if ( secondHand == 237) {
SetupGreenYellowAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 238) {
currentPalette = myTurquoiseSiennaCrimsonPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 239) {
SetupBlackAndChartreuseStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 240) {
currentPalette = myTealWhiteGoldenrodPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 241) {
fill_solid( currentPalette, 16, CRGB::OrangeRed);
currentBlending = NOBLEND;
}
if ( secondHand == 242) {
SetupDarkTurquoiseAndLightSeaGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 243) {
SetupBlackAndDarkVioletStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 244) {
fill_solid( currentPalette, 16, CRGB::SeaGreen);
currentBlending = NOBLEND;
}
if ( secondHand == 245) {
SetupBlackAndDarkSeaGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 246) {
SetupHotPinkAndLightSeaGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 247) {
fill_solid( currentPalette, 16, CRGB::LightYellow);
currentBlending = NOBLEND;
}
if ( secondHand == 248) {
SetupSeaGreenAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 249) {
SetupDarkSeaGreenAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 250) {
currentPalette = myColors12Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 251) {
SetupGoldAndBlueStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 252) {
SetupSpringGreenAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 253) {
fill_solid( currentPalette, 16, CRGB::PowderBlue);
currentBlending = NOBLEND;
}
if ( secondHand == 254) {
currentPalette = myTealWhiteMediumVioletRedPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 255) {
SetupBlackAndDarkGoldenrodStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 256) {
SetupOrchidAndOliveStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 257) {
fill_solid( currentPalette, 16, CRGB::Olive);
currentBlending = NOBLEND;
}
if ( secondHand == 258) {
SetupBlackAndBlueVioletStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 259) {
currentPalette = myColors2Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 260) {
SetupMoccasinAndOliveStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 261) {
SetupRoyalBlueAndSiennaStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 262) {
currentPalette = myColors4Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 263) {
SetupAquaAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 264) {
SetupBlueVioletAndWhiteStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 265) {
fill_solid( currentPalette, 16, CRGB::MidnightBlue);
currentBlending = NOBLEND;
}
if ( secondHand == 266) {
currentPalette = myDarkCyanCrimsonAmethystPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 267) {
SetupTanAndSpringGreenStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 268) {
SetupBlackAndSeaGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 269) {
fill_solid( currentPalette, 16, CRGB::PapayaWhip);
currentBlending = NOBLEND;
}
if ( secondHand == 270) {
SetupBlackAndDarkOrchidStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 271) {
currentPalette = myTurquoiseSiennaCrimsonPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 272) {
SetupGreenYellowAndBlueVioletStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 273) {
SetupTanAndSpringGreenStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 274) {
SetupDodgerBlueAndOrangeRedStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 275) {
fill_solid( currentPalette, 16, CRGB::SandyBrown);
currentBlending = NOBLEND;
}
if ( secondHand == 276) {
SetupTurquoiseAndTomatoStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 277) {
SetupBlackAndTurquoiseStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 278) {
currentPalette = myColors1Palette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 279) {
fill_solid( currentPalette, 16, CRGB::MediumSpringGreen);
currentBlending = NOBLEND;
}
if ( secondHand == 280) {
currentPalette = myColors10Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 281) {
currentPalette = myDarkOrangeSeaGreenWhitePalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 282) {
SetupBlackAndGoldenrodStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 283) {
fill_solid( currentPalette, 16, CRGB::MintCream);
currentBlending = NOBLEND;
}
if ( secondHand == 284) {
SetupYellowAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 285) {
currentPalette = myIndigoBrownOrangeRedPalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 286) {
currentPalette = myGreenBlueYellowRedPalette_p;
currentBlending = LINEARBLEND;
}
if ( secondHand == 287) {
currentPalette = mySalmonOrchidLimePalette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 288) {
fill_solid( currentPalette, 16, CRGB::SlateBlue);
currentBlending = NOBLEND;
}
if ( secondHand == 289) {
currentPalette = myColors6Palette_p;
currentBlending = NOBLEND;
}
if ( secondHand == 290) {
SetupMediumPurpleAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 291) {
SetupPeruAndWhiteStripedPalette();
currentBlending = LINEARBLEND;
}
if ( secondHand == 292) {
SetupBlackAndAquaStripedPalette();
currentBlending = NOBLEND;
}
if ( secondHand == 293) {
fill_solid( currentPalette, 16, CRGB::Red);
currentBlending = NOBLEND;
}
if ( secondHand == 294) {
fill_solid( currentPalette, 16, CRGB::Green);
currentBlending = NOBLEND;
}
if ( secondHand == 295) {
fill_solid( currentPalette, 16, CRGB::MidnightBlue);
currentBlending = NOBLEND;
}
if ( secondHand == 296) {
SetupDarkSlateBlueAndLightSeaGreenStripedPalette();
currentBlending = LINEARBLEND;
}
}
}
// This function fills the palette with totally random colors.
void SetupTotallyRandomPalette()
{
for ( int i = 0; i < 16; i++) {
currentPalette[i] = CHSV( random8(), 255, random8());
}
}
// This function sets up a palette of black and white stripes,
// using code. Since the palette is effectively an array of
// sixteen CRGB colors, the various fill_* functions can be used
// to set them up.
void SetupBlackAndWhiteStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Black and Aqua
void SetupBlackAndAquaStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::Aqua;
currentPalette[4] = CRGB::Aqua;
currentPalette[8] = CRGB::Aqua;
currentPalette[12] = CRGB::Aqua;
}
// Black and BlueViolet
void SetupBlackAndBlueVioletStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::BlueViolet;
currentPalette[4] = CRGB::BlueViolet;
currentPalette[8] = CRGB::BlueViolet;
currentPalette[12] = CRGB::BlueViolet;
}
// Black and Chartreuse
void SetupBlackAndChartreuseStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::Chartreuse;
currentPalette[4] = CRGB::Chartreuse;
currentPalette[8] = CRGB::Chartreuse;
currentPalette[12] = CRGB::Chartreuse;
}
// Black and DarkCyan
void SetupBlackAndDarkCyanStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::DarkCyan;
currentPalette[4] = CRGB::DarkCyan;
currentPalette[8] = CRGB::DarkCyan;
currentPalette[12] = CRGB::DarkCyan;
}
// Black and DarkGoldenrod
void SetupBlackAndDarkGoldenrodStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::DarkGoldenrod;
currentPalette[4] = CRGB::DarkGoldenrod;
currentPalette[8] = CRGB::DarkGoldenrod;
currentPalette[12] = CRGB::DarkGoldenrod;
}
// Black and DarkSeaGreen
void SetupBlackAndDarkSeaGreenStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::DarkSeaGreen;
currentPalette[4] = CRGB::DarkSeaGreen;
currentPalette[8] = CRGB::DarkSeaGreen;
currentPalette[12] = CRGB::DarkSeaGreen;
}
// Black and DarkViolet
void SetupBlackAndDarkVioletStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::DarkViolet;
currentPalette[4] = CRGB::DarkViolet;
currentPalette[8] = CRGB::DarkViolet;
currentPalette[12] = CRGB::DarkViolet;
}
// Black and DodgerBlue
void SetupBlackAndDodgerBlueStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::DodgerBlue;
currentPalette[4] = CRGB::DodgerBlue;
currentPalette[8] = CRGB::DodgerBlue;
currentPalette[12] = CRGB::DodgerBlue;
}
// Black and Goldenrod
void SetupBlackAndGoldenrodStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::Goldenrod;
currentPalette[4] = CRGB::Goldenrod;
currentPalette[8] = CRGB::Goldenrod;
currentPalette[12] = CRGB::Goldenrod;
}
// Black and GreenYellow
void SetupBlackAndGreenYellowStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::GreenYellow;
currentPalette[4] = CRGB::GreenYellow;
currentPalette[8] = CRGB::GreenYellow;
currentPalette[12] = CRGB::GreenYellow;
}
// Black and Lime
void SetupBlackAndLimeStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::Lime;
currentPalette[4] = CRGB::Lime;
currentPalette[8] = CRGB::Lime;
currentPalette[12] = CRGB::Lime;
}
// Black and MediumTurquoise
void SetupBlackAndMediumTurquoiseStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::MediumTurquoise;
currentPalette[4] = CRGB::MediumTurquoise;
currentPalette[8] = CRGB::MediumTurquoise;
currentPalette[12] = CRGB::MediumTurquoise;
}
// Black and Peru
void SetupBlackAndPeruStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::Peru;
currentPalette[4] = CRGB::Peru;
currentPalette[8] = CRGB::Peru;
currentPalette[12] = CRGB::Peru;
}
// Black and RoyalBlue
void SetupBlackAndRoyalBlueStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::RoyalBlue;
currentPalette[4] = CRGB::RoyalBlue;
currentPalette[8] = CRGB::RoyalBlue;
currentPalette[12] = CRGB::RoyalBlue;
}
// Black and SeaGreen
void SetupBlackAndSeaGreenStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::SeaGreen;
currentPalette[4] = CRGB::SeaGreen;
currentPalette[8] = CRGB::SeaGreen;
currentPalette[12] = CRGB::SeaGreen;
}
// Black and Teal
void SetupBlackAndTealStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::Teal;
currentPalette[4] = CRGB::Teal;
currentPalette[8] = CRGB::Teal;
currentPalette[12] = CRGB::Teal;
}
// Black and Turquoise
void SetupBlackAndTurquoiseStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::Turquoise;
currentPalette[4] = CRGB::Turquoise;
currentPalette[8] = CRGB::Turquoise;
currentPalette[12] = CRGB::Turquoise;
}
// Black and DarkOrchid
void SetupBlackAndDarkOrchidStripedPalette()
{
// 'black out' all 16 palette entries...
fill_solid( currentPalette, 16, CRGB::Black);
// and set every fourth one to white.
currentPalette[0] = CRGB::DarkOrchid;
currentPalette[4] = CRGB::DarkOrchid;
currentPalette[8] = CRGB::DarkOrchid;
currentPalette[12] = CRGB::DarkOrchid;
}
// All other 2 colors
// All other 2 colors
// Magenta and White Striped
void SetupMagentaAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Magenta);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Teal and White Striped
void SetupTealAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Teal);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Lime and White Striped
void SetupLimeAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Lime);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// BlueViolet and White Striped
void SetupBlueVioletAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::BlueViolet);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// MintCream and White Striped
void SetupMintCreamAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::MintCream);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// DarkCyan and White Striped
void SetupDarkCyanAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::DarkCyan);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// DarkSeaGreen and White Striped
void SetupDarkSeaGreenAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::DarkSeaGreen);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// DodgerBlue and White Striped
void SetupDodgerBlueAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::DodgerBlue);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// GreenYellow and White Striped
void SetupGreenYellowAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::GreenYellow);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// SeaGreen and White Striped
void SetupSeaGreenAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::SeaGreen);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// MediumPurple and White Striped
void SetupMediumPurpleAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::MediumPurple);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// OrangeRed and White Striped
void SetupOrangeRedAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::OrangeRed);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Peru and White Striped
void SetupPeruAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Peru);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// SpringGreen and White Striped
void SetupSpringGreenAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::SpringGreen);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Yellow and White Striped
void SetupYellowAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Yellow);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Gold and Blue Striped
void SetupGoldAndBlueStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Gold);
// and set every fourth one to blue.
currentPalette[0] = CRGB::Blue;
currentPalette[4] = CRGB::Blue;
currentPalette[8] = CRGB::Blue;
currentPalette[12] = CRGB::Blue;
}
// Green and White Striped
void SetupGreenAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Green);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Red and Red Striped
void SetupRedAndRedStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Red);
// and set every fourth one to Red.
currentPalette[0] = CRGB::Red;
currentPalette[4] = CRGB::Red;
currentPalette[8] = CRGB::Red;
currentPalette[12] = CRGB::Red;
}
// Green and Blue Striped
void SetupGreenAndBlueStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Green);
// and set every fourth one to Blue.
currentPalette[0] = CRGB::Blue;
currentPalette[4] = CRGB::Blue;
currentPalette[8] = CRGB::Blue;
currentPalette[12] = CRGB::Blue;
}
// Red and Blue Striped
void SetupRedAndBlueStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Red);
// and set every fourth one to Blue.
currentPalette[0] = CRGB::Blue;
currentPalette[4] = CRGB::Blue;
currentPalette[8] = CRGB::Blue;
currentPalette[12] = CRGB::Blue;
}
// Gold and Green
void SetupGoldAndGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Gold);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Green;
currentPalette[4] = CRGB::Green;
currentPalette[8] = CRGB::Green;
currentPalette[12] = CRGB::Green;
}
// Gold and White
void SetupGoldAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Gold);
// and set every fourth one to White.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Red and Green
void SetupRedAndGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Red);
// and set every fourth one to Greem.
currentPalette[0] = CRGB::Green;
currentPalette[4] = CRGB::Green;
currentPalette[8] = CRGB::Green;
currentPalette[12] = CRGB::Green;
}
// DeepPink and Aqua
void SetupDeepPinkAndAquaStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::DeepPink);
// and set every fourth one to DeepPink.
currentPalette[0] = CRGB::Aqua;
currentPalette[4] = CRGB::Aqua;
currentPalette[8] = CRGB::Aqua;
currentPalette[12] = CRGB::Aqua;
}
// Green and Orange
void SetupGreenAndOrangeStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Green);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Orange;
currentPalette[4] = CRGB::Orange;
currentPalette[8] = CRGB::Orange;
currentPalette[12] = CRGB::Orange;
}
// Turquoise and Tomato
void SetupTurquoiseAndTomatoStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Turquoise);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Tomato;
currentPalette[4] = CRGB::Tomato;
currentPalette[8] = CRGB::Tomato;
currentPalette[12] = CRGB::Tomato;
}
// Moccasin and LightSeaGreen
void SetupMoccasinAndLightSeaGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Moccasin);
// and set every fourth one to Green.
currentPalette[0] = CRGB::LightSeaGreen;
currentPalette[4] = CRGB::LightSeaGreen;
currentPalette[8] = CRGB::LightSeaGreen;
currentPalette[12] = CRGB::LightSeaGreen;
}
// DodgerBlue and OrangeRed
void SetupDodgerBlueAndOrangeRedStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::DodgerBlue);
// and set every fourth one to Green.
currentPalette[0] = CRGB::OrangeRed;
currentPalette[4] = CRGB::OrangeRed;
currentPalette[8] = CRGB::OrangeRed;
currentPalette[12] = CRGB::OrangeRed;
}
// HotPink and LightSeaGreen
void SetupHotPinkAndLightSeaGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::HotPink);
// and set every fourth one to Green.
currentPalette[0] = CRGB::LightSeaGreen;
currentPalette[4] = CRGB::LightSeaGreen;
currentPalette[8] = CRGB::LightSeaGreen;
currentPalette[12] = CRGB::LightSeaGreen;
}
// GreenYellow and BlueViolet
void SetupGreenYellowAndBlueVioletStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::GreenYellow);
// and set every fourth one to Green.
currentPalette[0] = CRGB::BlueViolet;
currentPalette[4] = CRGB::BlueViolet;
currentPalette[8] = CRGB::BlueViolet;
currentPalette[12] = CRGB::BlueViolet;
}
// Turquoise and Moccasin
void SetupTurquoiseAndMoccasinStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Turquoise);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Moccasin;
currentPalette[4] = CRGB::Moccasin;
currentPalette[8] = CRGB::Moccasin;
currentPalette[12] = CRGB::Moccasin;
}
// RoyalBlue and Sienna
void SetupRoyalBlueAndSiennaStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::RoyalBlue);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Sienna;
currentPalette[4] = CRGB::Sienna;
currentPalette[8] = CRGB::Sienna;
currentPalette[12] = CRGB::Sienna;
}
// Orchid and Olive
void SetupOrchidAndOliveStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Orchid);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Olive;
currentPalette[4] = CRGB::Olive;
currentPalette[8] = CRGB::Olive;
currentPalette[12] = CRGB::Olive;
}
// Fuchsia and ForestGreen
void SetupFuchsiaAndForestGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Fuchsia);
// and set every fourth one to Green.
currentPalette[0] = CRGB::ForestGreen;
currentPalette[4] = CRGB::ForestGreen;
currentPalette[8] = CRGB::ForestGreen;
currentPalette[12] = CRGB::ForestGreen;
}
// DarkViolet and DarkGreen
void SetupDarkVioletAndDarkGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::DarkViolet);
// and set every fourth one to Green.
currentPalette[0] = CRGB::DarkGreen;
currentPalette[4] = CRGB::DarkGreen;
currentPalette[8] = CRGB::DarkGreen;
currentPalette[12] = CRGB::DarkGreen;
}
// Cyan and Crimson
void SetupCyanAndCrimsonStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Cyan);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Crimson;
currentPalette[4] = CRGB::Crimson;
currentPalette[8] = CRGB::Crimson;
currentPalette[12] = CRGB::Crimson;
}
// Tan and SpringGreen
void SetupTanAndSpringGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Tan);
// and set every fourth one to Green.
currentPalette[0] = CRGB::SpringGreen;
currentPalette[4] = CRGB::SpringGreen;
currentPalette[8] = CRGB::SpringGreen;
currentPalette[12] = CRGB::SpringGreen;
}
// Gold and MidnightBlue
void SetupGoldAndMidnightBlueStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Gold);
// and set every fourth one to Green.
currentPalette[0] = CRGB::MidnightBlue;
currentPalette[4] = CRGB::MidnightBlue;
currentPalette[8] = CRGB::MidnightBlue;
currentPalette[12] = CRGB::MidnightBlue;
}
// DarkSlateBlue and LightSeaGreen
void SetupDarkSlateBlueAndLightSeaGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::DarkSlateBlue);
// and set every fourth one to Green.
currentPalette[0] = CRGB::LightSeaGreen;
currentPalette[4] = CRGB::LightSeaGreen;
currentPalette[8] = CRGB::LightSeaGreen;
currentPalette[12] = CRGB::LightSeaGreen;
}
// DarkTurquoise and LightSeaGreen
void SetupDarkTurquoiseAndLightSeaGreenStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::DarkTurquoise);
// and set every fourth one to Green.
currentPalette[0] = CRGB::LightSeaGreen;
currentPalette[4] = CRGB::LightSeaGreen;
currentPalette[8] = CRGB::LightSeaGreen;
currentPalette[12] = CRGB::LightSeaGreen;
}
// Tomato and Teal
void SetupTomatoAndTealStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Tomato);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Teal;
currentPalette[4] = CRGB::Teal;
currentPalette[8] = CRGB::Teal;
currentPalette[12] = CRGB::Teal;
}
// Moccasin and Olive
void SetupMoccasinAndOliveStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Moccasin);
// and set every fourth one to Green.
currentPalette[0] = CRGB::Olive;
currentPalette[4] = CRGB::Olive;
currentPalette[8] = CRGB::Olive;
currentPalette[12] = CRGB::Olive;
}
// Aqua and White
void SetupAquaAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Aqua);
// and set every fourth one to White.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Red and White Striped
void SetupRedAndWhiteStripedPalette()
{
fill_solid( currentPalette, 16, CRGB::Red);
// and set every fourth one to white.
currentPalette[0] = CRGB::White;
currentPalette[4] = CRGB::White;
currentPalette[8] = CRGB::White;
currentPalette[12] = CRGB::White;
}
// Red White and Blue
; const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM =
{
CRGB::Red,
CRGB::White,
CRGB::Blue,
CRGB::Black,
CRGB::Red,
CRGB::White,
CRGB::Blue,
CRGB::Black,
CRGB::Red,
CRGB::Red,
CRGB::White,
CRGB::White,
CRGB::Blue,
CRGB::Blue,
CRGB::Black,
CRGB::Black
}
// MidnightBlue DarkGreen Maroon
; const TProgmemPalette16 myMidnightBlueDarkGreenMaroonPalette_p PROGMEM =
{
CRGB::MidnightBlue,
CRGB::DarkGreen,
CRGB::Maroon,
CRGB::Black,
CRGB::MidnightBlue,
CRGB::DarkGreen,
CRGB::Maroon,
CRGB::Black,
CRGB::MidnightBlue,
CRGB::MidnightBlue,
CRGB::DarkGreen,
CRGB::DarkGreen,
CRGB::Maroon,
CRGB::Maroon,
CRGB::Black,
CRGB::Black
}
// Teal White Goldenrod
; const TProgmemPalette16 myTealWhiteGoldenrodPalette_p PROGMEM =
{
CRGB::Teal,
CRGB::White,
CRGB::Goldenrod,
CRGB::Black,
CRGB::Teal,
CRGB::White,
CRGB::Goldenrod,
CRGB::Black,
CRGB::Teal,
CRGB::Teal,
CRGB::White,
CRGB::White,
CRGB::Goldenrod,
CRGB::Goldenrod,
CRGB::Black,
CRGB::Black
}
// Indigo Brown OrangeRed
; const TProgmemPalette16 myIndigoBrownOrangeRedPalette_p PROGMEM =
{
CRGB::Indigo,
CRGB::Brown,
CRGB::OrangeRed,
CRGB::Black,
CRGB::Indigo,
CRGB::Brown,
CRGB::OrangeRed,
CRGB::Black,
CRGB::Indigo,
CRGB::Indigo,
CRGB::Brown,
CRGB::Brown,
CRGB::OrangeRed,
CRGB::OrangeRed,
CRGB::Black,
CRGB::Black
}
// Teal SaddleBrown MediumVioletRed
; const TProgmemPalette16 myTealSaddleBrownMediumVioletRedPalette_p PROGMEM =
{
CRGB::Teal,
CRGB::SaddleBrown,
CRGB::MediumVioletRed,
CRGB::Black,
CRGB::Teal,
CRGB::SaddleBrown,
CRGB::MediumVioletRed,
CRGB::Black,
CRGB::Teal,
CRGB::Teal,
CRGB::SaddleBrown,
CRGB::SaddleBrown,
CRGB::MediumVioletRed,
CRGB::MediumVioletRed,
CRGB::Black,
CRGB::Black
}
// DarkOrange SeaGreen White
; const TProgmemPalette16 myDarkOrangeSeaGreenWhitePalette_p PROGMEM =
{
CRGB::DarkOrange,
CRGB::SeaGreen,
CRGB::White,
CRGB::Black,
CRGB::DarkOrange,
CRGB::SeaGreen,
CRGB::White,
CRGB::Black,
CRGB::DarkOrange,
CRGB::DarkOrange,
CRGB::SeaGreen,
CRGB::SeaGreen,
CRGB::White,
CRGB::White,
CRGB::Black,
CRGB::Black
}
// RoyalBlue Olive DarkGoldenrod
; const TProgmemPalette16 myRoyalBlueOliveDarkGoldenrodPalette_p PROGMEM =
{
CRGB::RoyalBlue,
CRGB::Olive,
CRGB::DarkGoldenrod,
CRGB::Black,
CRGB::RoyalBlue,
CRGB::Olive,
CRGB::DarkGoldenrod,
CRGB::Black,
CRGB::RoyalBlue,
CRGB::RoyalBlue,
CRGB::Olive,
CRGB::Olive,
CRGB::DarkGoldenrod,
CRGB::DarkGoldenrod,
CRGB::Black,
CRGB::Black
}
// DarkCyan Crimson Amethyst
; const TProgmemPalette16 myDarkCyanCrimsonAmethystPalette_p PROGMEM =
{
CRGB::DarkCyan,
CRGB::Crimson,
CRGB::Amethyst,
CRGB::Black,
CRGB::DarkCyan,
CRGB::Crimson,
CRGB::Amethyst,
CRGB::Black,
CRGB::DarkCyan,
CRGB::DarkCyan,
CRGB::Crimson,
CRGB::Crimson,
CRGB::Amethyst,
CRGB::Amethyst,
CRGB::Black,
CRGB::Black
}
// Aquamarine DeepSkyBlue Fuchsia
; const TProgmemPalette16 myAquamarineDeepSkyBlueFuchsiaPalette_p PROGMEM =
{
CRGB::Aquamarine,
CRGB::DeepSkyBlue,
CRGB::Fuchsia,
CRGB::Black,
CRGB::Aquamarine,
CRGB::DeepSkyBlue,
CRGB::Fuchsia,
CRGB::Black,
CRGB::Aquamarine,
CRGB::Aquamarine,
CRGB::DeepSkyBlue,
CRGB::DeepSkyBlue,
CRGB::Fuchsia,
CRGB::Fuchsia,
CRGB::Black,
CRGB::Black
}
// FireBrick Gold GreenYellow
; const TProgmemPalette16 myFireBrickGoldGreenYellowPalette_p PROGMEM =
{
CRGB::FireBrick,
CRGB::Gold,
CRGB::GreenYellow,
CRGB::Black,
CRGB::FireBrick,
CRGB::Gold,
CRGB::GreenYellow,
CRGB::Black,
CRGB::FireBrick,
CRGB::FireBrick,
CRGB::Gold,
CRGB::Gold,
CRGB::GreenYellow,
CRGB::GreenYellow,
CRGB::Black,
CRGB::Black
}
// Turquoise Sienna Crimson
; const TProgmemPalette16 myTurquoiseSiennaCrimsonPalette_p PROGMEM =
{
CRGB::Turquoise,
CRGB::Sienna,
CRGB::Crimson,
CRGB::Black,
CRGB::Turquoise,
CRGB::Sienna,
CRGB::Crimson,
CRGB::Black,
CRGB::Turquoise,
CRGB::Turquoise,
CRGB::Sienna,
CRGB::Sienna,
CRGB::Crimson,
CRGB::Crimson,
CRGB::Black,
CRGB::Black
}
// White Olive Navy
; const TProgmemPalette16 myWhiteOliveNavyPalette_p PROGMEM =
{
CRGB::White,
CRGB::Olive,
CRGB::Navy,
CRGB::Black,
CRGB::White,
CRGB::Olive,
CRGB::Navy,
CRGB::Black,
CRGB::White,
CRGB::White,
CRGB::Olive,
CRGB::Olive,
CRGB::Navy,
CRGB::Navy,
CRGB::Black,
CRGB::Black
}
// MidnightBlue MediumOrchid Magenta
; const TProgmemPalette16 myMidnightBlueMediumOrchidMagentaPalette_p PROGMEM =
{
CRGB::MidnightBlue,
CRGB::MediumOrchid,
CRGB::Magenta,
CRGB::Black,
CRGB::MidnightBlue,
CRGB::MediumOrchid,
CRGB::Magenta,
CRGB::Black,
CRGB::MidnightBlue,
CRGB::MidnightBlue,
CRGB::MediumOrchid,
CRGB::MediumOrchid,
CRGB::Magenta,
CRGB::Magenta,
CRGB::Black,
CRGB::Black
}
// SeaGreen Salmon RoyalBlue
; const TProgmemPalette16 mySeaGreenSalmonRoyalBluePalette_p PROGMEM =
{
CRGB::SeaGreen,
CRGB::Salmon,
CRGB::RoyalBlue,
CRGB::Black,
CRGB::SeaGreen,
CRGB::Salmon,
CRGB::RoyalBlue,
CRGB::Black,
CRGB::SeaGreen,
CRGB::SeaGreen,
CRGB::Salmon,
CRGB::Salmon,
CRGB::RoyalBlue,
CRGB::RoyalBlue,
CRGB::Black,
CRGB::Black
}
// Indigo DarkTurquoise White
; const TProgmemPalette16 myIndigoDarkTurquoiseWhitePalette_p PROGMEM =
{
CRGB::Indigo,
CRGB::DarkTurquoise,
CRGB::White,
CRGB::Black,
CRGB::Indigo,
CRGB::DarkTurquoise,
CRGB::White,
CRGB::Black,
CRGB::Indigo,
CRGB::Indigo,
CRGB::DarkTurquoise,
CRGB::DarkTurquoise,
CRGB::White,
CRGB::White,
CRGB::Black,
CRGB::Black
}
// Salmon Orchid Lime
; const TProgmemPalette16 mySalmonOrchidLimePalette_p PROGMEM =
{
CRGB::Salmon,
CRGB::Orchid,
CRGB::Lime,
CRGB::Black,
CRGB::Salmon,
CRGB::Orchid,
CRGB::Lime,
CRGB::Black,
CRGB::Salmon,
CRGB::Salmon,
CRGB::Orchid,
CRGB::Orchid,
CRGB::Lime,
CRGB::Lime,
CRGB::Black,
CRGB::Black
}
// MediumSpringGreen Moccasin Tomato
; const TProgmemPalette16 myMediumSpringGreenMoccasinTomatoPalette_p PROGMEM =
{
CRGB::MediumSpringGreen,
CRGB::Moccasin,
CRGB::Tomato,
CRGB::Black,
CRGB::MediumSpringGreen,
CRGB::Moccasin,
CRGB::Tomato,
CRGB::Black,
CRGB::MediumSpringGreen,
CRGB::MediumSpringGreen,
CRGB::Moccasin,
CRGB::Moccasin,
CRGB::Tomato,
CRGB::Tomato,
CRGB::Black,
CRGB::Black
}
//Teal White MediumVioletRed
; const TProgmemPalette16 myTealWhiteMediumVioletRedPalette_p PROGMEM =
{
CRGB::Teal,
CRGB::White,
CRGB::MediumVioletRed,
CRGB::Black,
CRGB::Teal,
CRGB::White,
CRGB::MediumVioletRed,
CRGB::Black,
CRGB::Teal,
CRGB::Teal,
CRGB::White,
CRGB::White,
CRGB::MediumVioletRed,
CRGB::MediumVioletRed,
CRGB::Black,
CRGB::Black
}
//Gold Red and Green
; const TProgmemPalette16 myGoldRedGreenPalette_p PROGMEM =
{
CRGB::Red,
CRGB::Gold,
CRGB::Green,
CRGB::White,
CRGB::Red,
CRGB::Gold,
CRGB::Green,
CRGB::White,
CRGB::Red,
CRGB::Red,
CRGB::Gold,
CRGB::Gold,
CRGB::Green,
CRGB::Green,
CRGB::White,
CRGB::White
}
// Gold Blue Green
; const TProgmemPalette16 myGoldBlueGreenPalette_p PROGMEM =
{
CRGB::Gold,
CRGB::Blue,
CRGB::Green,
CRGB::Gold,
CRGB::Blue,
CRGB::Green,
CRGB::Gold,
CRGB::Gold,
CRGB::Blue,
CRGB::Blue,
CRGB::Green,
CRGB::Green
}
// Green Blue Yellow Red
; const TProgmemPalette16 myGreenBlueYellowRedPalette_p PROGMEM =
{
CRGB::Red,
CRGB::Blue,
CRGB::Green,
CRGB::Yellow,
CRGB::Red,
CRGB::Blue,
CRGB::Green,
CRGB::Yellow,
CRGB::Red,
CRGB::Red,
CRGB::Blue,
CRGB::Blue,
CRGB::Green,
CRGB::Green,
CRGB::Yellow,
CRGB::Yellow
}
// RoyalBlue MidnightBlue DeepSkyBlue DodgerBlue
; const TProgmemPalette16 myVariousBluesPalette_p PROGMEM =
{
CRGB::RoyalBlue,
CRGB::MidnightBlue,
CRGB::DeepSkyBlue,
CRGB::DodgerBlue,
CRGB::RoyalBlue,
CRGB::MidnightBlue,
CRGB::DeepSkyBlue,
CRGB::DodgerBlue,
CRGB::RoyalBlue,
CRGB::RoyalBlue,
CRGB::MidnightBlue,
CRGB::MidnightBlue,
CRGB::DeepSkyBlue,
CRGB::DeepSkyBlue,
CRGB::DodgerBlue,
CRGB::DodgerBlue
}
; const TProgmemPalette16 myForestColors_p PROGMEM =
{
CRGB::DarkGreen,
CRGB::DarkGreen,
CRGB::DarkOliveGreen,
CRGB::DarkGreen,
CRGB::Green,
CRGB::ForestGreen,
CRGB::OliveDrab,
CRGB::Green,
CRGB::SeaGreen,
CRGB::MediumAquamarine,
CRGB::LimeGreen,
CRGB::YellowGreen,
CRGB::LightGreen,
CRGB::LawnGreen,
CRGB::MediumAquamarine,
CRGB::ForestGreen
}
; const TProgmemPalette16 myFirstColors_p PROGMEM =
{
CRGB::Chartreuse,
CRGB::Chartreuse,
CRGB::DeepSkyBlue,
CRGB::Chartreuse,
CRGB::MediumBlue,
CRGB::ForestGreen,
CRGB::OliveDrab,
CRGB::DarkSeaGreen,
CRGB::SeaGreen,
CRGB::MediumAquamarine,
CRGB::Peru,
CRGB::CornflowerBlue,
CRGB::Olive,
CRGB::DarkCyan,
CRGB::MediumAquamarine,
CRGB::ForestGreen
}
// DarkOrange Crimson Lime Violet
; const TProgmemPalette16 myDarkOrangeCrimsonLimeVioletPalette_p PROGMEM =
{
CRGB::DarkOrange,
CRGB::Crimson,
CRGB::Lime,
CRGB::Violet,
CRGB::DarkOrange,
CRGB::Crimson,
CRGB::Lime,
CRGB::Violet,
CRGB::DarkOrange,
CRGB::DarkOrange,
CRGB::Crimson,
CRGB::Crimson,
CRGB::Lime,
CRGB::Lime,
CRGB::Violet,
CRGB::Violet
}
// Red White Green Blue
; const TProgmemPalette16 myRedWhiteGreenBluePalette_p PROGMEM =
{
CRGB::Red,
CRGB::White,
CRGB::Green,
CRGB::Blue,
CRGB::Red,
CRGB::White,
CRGB::Green,
CRGB::Blue,
CRGB::Red,
CRGB::Red,
CRGB::White,
CRGB::White,
CRGB::Green,
CRGB::Green,
CRGB::Blue,
CRGB::Blue
}
// Gold Blue White Aqua
; const TProgmemPalette16 myGoldBlueWhiteAquaPalette_p PROGMEM =
{
CRGB::Gold,
CRGB::Blue,
CRGB::White,
CRGB::Aqua,
CRGB::Gold,
CRGB::Blue,
CRGB::White,
CRGB::Aqua,
CRGB::Gold,
CRGB::Gold,
CRGB::Blue,
CRGB::Blue,
CRGB::White,
CRGB::White,
CRGB::Aqua,
CRGB::Aqua
}
// White RoyalBlue SpringGreen Goldenrod
; const TProgmemPalette16 myColors1Palette_p PROGMEM =
{
CRGB::White,
CRGB::RoyalBlue,
CRGB::SpringGreen,
CRGB::Goldenrod,
CRGB::White,
CRGB::RoyalBlue,
CRGB::SpringGreen,
CRGB::Goldenrod,
CRGB::White,
CRGB::White,
CRGB::RoyalBlue,
CRGB::RoyalBlue,
CRGB::SpringGreen,
CRGB::SpringGreen,
CRGB::Goldenrod,
CRGB::Goldenrod
}
// DarkMagenta MediumAquamarine YellowGreen Salmon
; const TProgmemPalette16 myColors2Palette_p PROGMEM =
{
CRGB::DarkMagenta,
CRGB::MediumAquamarine,
CRGB::YellowGreen,
CRGB::Salmon,
CRGB::DarkMagenta,
CRGB::MediumAquamarine,
CRGB::YellowGreen,
CRGB::Salmon,
CRGB::DarkMagenta,
CRGB::DarkMagenta,
CRGB::MediumAquamarine,
CRGB::MediumAquamarine,
CRGB::YellowGreen,
CRGB::YellowGreen,
CRGB::Salmon,
CRGB::Salmon
}
// Lime Magenta MediumBlue Peru
; const TProgmemPalette16 myColors3Palette_p PROGMEM =
{
CRGB::Lime,
CRGB::Magenta,
CRGB::MediumBlue,
CRGB::Peru,
CRGB::Lime,
CRGB::Magenta,
CRGB::MediumBlue,
CRGB::Peru,
CRGB::Lime,
CRGB::Lime,
CRGB::Magenta,
CRGB::Magenta,
CRGB::MediumBlue,
CRGB::MediumBlue,
CRGB::Peru,
CRGB::Peru
}
// RoyalBlue SaddleBrown SeaGreen Wheat
; const TProgmemPalette16 myColors4Palette_p PROGMEM =
{
CRGB::RoyalBlue,
CRGB::SaddleBrown,
CRGB::SeaGreen,
CRGB::Yellow,
CRGB::RoyalBlue,
CRGB::SaddleBrown,
CRGB::SeaGreen,
CRGB::Yellow,
CRGB::RoyalBlue,
CRGB::RoyalBlue,
CRGB::SaddleBrown,
CRGB::SaddleBrown,
CRGB::SeaGreen,
CRGB::SeaGreen,
CRGB::Yellow,
CRGB::Yellow
}
// Cyan Crimson Coral Chartreuse
; const TProgmemPalette16 myColors5Palette_p PROGMEM =
{
CRGB::Cyan,
CRGB::Crimson,
CRGB::Coral,
CRGB::Chartreuse,
CRGB::Cyan,
CRGB::Crimson,
CRGB::Coral,
CRGB::Chartreuse,
CRGB::Cyan,
CRGB::Cyan,
CRGB::Crimson,
CRGB::Crimson,
CRGB::Coral,
CRGB::Coral,
CRGB::Chartreuse,
CRGB::Chartreuse
}
// Brown White Aqua Amethyst
; const TProgmemPalette16 myColors6Palette_p PROGMEM =
{
CRGB::Brown,
CRGB::White,
CRGB::Aqua,
CRGB::Amethyst,
CRGB::Brown,
CRGB::White,
CRGB::Aqua,
CRGB::Amethyst,
CRGB::Brown,
CRGB::Brown,
CRGB::White,
CRGB::White,
CRGB::Aqua,
CRGB::Aqua,
CRGB::Amethyst,
CRGB::Amethyst
}
// Indigo Yellow Teal SlateBlue
; const TProgmemPalette16 myColors7Palette_p PROGMEM =
{
CRGB::Indigo,
CRGB::Yellow,
CRGB::Teal,
CRGB::SlateBlue,
CRGB::Indigo,
CRGB::Yellow,
CRGB::Teal,
CRGB::SlateBlue,
CRGB::Indigo,
CRGB::Indigo,
CRGB::Yellow,
CRGB::Yellow,
CRGB::Teal,
CRGB::Teal,
CRGB::SlateBlue,
CRGB::SlateBlue
}
// RoyalBlue Sienna DarkOrange Chartreuse
; const TProgmemPalette16 myColors8Palette_p PROGMEM =
{
CRGB::RoyalBlue,
CRGB::Sienna,
CRGB::DarkOrange,
CRGB::Chartreuse,
CRGB::RoyalBlue,
CRGB::Sienna,
CRGB::DarkOrange,
CRGB::Chartreuse,
CRGB::RoyalBlue,
CRGB::RoyalBlue,
CRGB::Sienna,
CRGB::Sienna,
CRGB::DarkOrange,
CRGB::DarkOrange,
CRGB::Chartreuse,
CRGB::Chartreuse
}
// CornflowerBlue Tomato SpringGreen White
; const TProgmemPalette16 myColors9Palette_p PROGMEM =
{
CRGB::CornflowerBlue,
CRGB::Tomato,
CRGB::SpringGreen,
CRGB::White,
CRGB::CornflowerBlue,
CRGB::Tomato,
CRGB::SpringGreen,
CRGB::White,
CRGB::CornflowerBlue,
CRGB::CornflowerBlue,
CRGB::Tomato,
CRGB::Tomato,
CRGB::SpringGreen,
CRGB::SpringGreen,
CRGB::White,
CRGB::White
}
// Olive MediumTurquoise DarkGoldenrod Fuchsia
; const TProgmemPalette16 myColors10Palette_p PROGMEM =
{
CRGB::Olive,
CRGB::MediumTurquoise,
CRGB::DarkGoldenrod,
CRGB::Fuchsia,
CRGB::Olive,
CRGB::MediumTurquoise,
CRGB::DarkGoldenrod,
CRGB::Fuchsia,
CRGB::Olive,
CRGB::Olive,
CRGB::MediumTurquoise,
CRGB::MediumTurquoise,
CRGB::DarkGoldenrod,
CRGB::DarkGoldenrod,
CRGB::Fuchsia,
CRGB::Fuchsia
}
// Salmon White Navy YellowGreen
; const TProgmemPalette16 myColors11Palette_p PROGMEM =
{
CRGB::Salmon,
CRGB::White,
CRGB::Navy,
CRGB::YellowGreen,
CRGB::Salmon,
CRGB::White,
CRGB::Navy,
CRGB::YellowGreen,
CRGB::Salmon,
CRGB::Salmon,
CRGB::White,
CRGB::White,
CRGB::Navy,
CRGB::Navy,
CRGB::YellowGreen,
CRGB::YellowGreen
}
// DeepSkyBlue Fuchsia MediumAquamarine Lime
; const TProgmemPalette16 myColors12Palette_p PROGMEM =
{
CRGB::DeepSkyBlue,
CRGB::Fuchsia,
CRGB::MediumAquamarine,
CRGB::Lime,
CRGB::DeepSkyBlue,
CRGB::Fuchsia,
CRGB::MediumAquamarine,
CRGB::Lime,
CRGB::DeepSkyBlue,
CRGB::DeepSkyBlue,
CRGB::Fuchsia,
CRGB::Fuchsia,
CRGB::MediumAquamarine,
CRGB::MediumAquamarine,
CRGB::Lime,
CRGB::Lime
}
// Red White Green
; const TProgmemPalette16 myRedWhiteGreenPalette_p PROGMEM =
{
CRGB::Red,
CRGB::Gray, // 'white' is too bright compared to red and blue
CRGB::Green,
CRGB::Black,
CRGB::Red,
CRGB::Gray,
CRGB::Green,
CRGB::Black,
CRGB::Red,
CRGB::Red,
CRGB::Gray,
CRGB::Gray,
CRGB::Green,
CRGB::Green,
CRGB::Black,
CRGB::Black
};