Trying to use just CloudColors_p platte off of your NoisePlusPalette.
It works great BUT it has about 20 seconds of random color noise first…i can’t seem to isolate what this is. I commented out the other pallettes under ChangePalletteAndSettingsPeriodically. Im new to this.
BTW great job on this. amazing.
void ChangePaletteAndSettingsPeriodically()
{
uint8_t secondHand = ((millis() / 1000) / HOLD_PALETTES_X_TIMES_AS_LONG) % 60;
static uint8_t lastSecond = 99;
if( lastSecond != secondHand) {
lastSecond = secondHand;
if( secondHand == 20) { currentPalette = CloudColors_p; speed = 4; scale = 30; colorLoop = 0; }
}
What effect are you trying to achieve? This code seems overly complicated without more context. I think the random color noise is coming from the fact that secondHand is just a counter going up, and you don’t set the palette until you hit 20. lastSecond doesn’t even seem to be used in this context.
Until millis() hits 1000, your secondHand variable is 0. Then until it hits some larger #, it’s probably just 1. I think you have a very complicated way of iterating every second. There may be an easier way to get to your desired effect.
@Jon-Paul_Taylor gah, stupid glass interface… trying to reply again
Hint: What is the value of currentPalette when your program starts?
@Stuart_Taylor yup that was it.
CRGBPalette16 currentPalette( PartyColors_p );
thanks
Hey, no problem. Dont forget to come back and #showoffyourwork