There are three analogWrites in your sketch.
You have to modify each one so that, instead of analogWrite(pin,x);
, it reads analogWrite(pin, 255-x);
Pins 3,5,6 for r,g,b, and +5V for the anode .
There are three analogWrites in your sketch.
You have to modify each one so that, instead of analogWrite(pin,x);
, it reads analogWrite(pin, 255-x);
Pins 3,5,6 for r,g,b, and +5V for the anode .