I have a question that I cannot seem to find the answer to and maybe there is a completely different route to do this.
Goal:
Fade from CRGB::Orange –> CRGB::Purple and when it is fully purple it triggers a separate function.
After this function completes it reverses going from Purple –> Orange.
I have the first part working using nblendPaletteTowardPalette, changes wonderfully.
I was hoping there was a way to check to see if all the pixels where set to purple. If I can’t I will just have to build a timer.
In the documents there is a section that states “CRGB colors can be compared for exact matches using == and !=.”
I am not totally sure how to implement this. I tried:
if(leds[i] == CRGB::Purple )
{
count++
}
Assuming eventually this count would equal my total number of leds.
Thanks everyone!