<!-- SC_OFF --><div class=“md”><p>hello, i'm playing around with FastLEDs example sketch showing different palettes. I cant show all of the code for reasons but strangely when totallyrandompalette goes up the strip spazes out and I believe causes random palette to go unbelievably fast before going back to normal after a sec. even stranger is that when I add an ! after the = on the first if( lastSecond = secondHand) shown below;</p> <pre><code>uint8_t secondHand = (millis() / 4000) % 67; static uint8_t lastSecond = 67; if( lastSecond =! secondHand) { lastSecond = secondHand; </code></pre> <p>the totally random palette works but one of the other sketches wont work. I've never had this issue before and I'm super confused why its like this.</p> <p>for reference below is the totallyrandompalette</p> <pre><code>void SetupTotallyRandomPalette() </code></pre> <p>{ for( int i = 0; i < 16; ++i) { currentPalette[i] = CHSV( random8(), 255, random8()); } }</p> <p>all help is appreciated and sorry for being so protective of the entirety of the code.</p> </div><!-- SC_ON --> submitted by <a href=“https://old.reddit.com/user/bruh_the_realist”> /u/bruh_the_realist </a> <br/> <span><a href=“https://old.reddit.com/r/FastLED/comments/15b04zu/issue_with_setuptotallyrandompalette/”>[link]</a></span> <span><a href=“https://old.reddit.com/r/FastLED/comments/15b04zu/issue_with_setuptotallyrandompalette/”>[comments]</a></span>