I've moved the analogWrite
part of the code inside the switch case
BRIGHTNESS_UP
& BRIGHTNESS_DOWN
and it's working. I also removed the crossFade(c);
line. Only problem is now that the brightness (color is turning white) can override the color so we must find a way to "stop" the brightness at a certain point when pressing the BRIGHTNESS_UP
button many times.
thanks geometrikal for your support! You believe it's possible to manipulate the dimming of the fade effect too? It's using the RGBMood class to creade a HSB color mix.