Hello,
I hope somebody can help me.
I have searched this forum and the internet for severall day how i can dim the brightnes of a rgb ledstrip.
I mean brightnes from 0 to 1 in one color.
There is a lot to find of fading and dimming between colors, but that is not what i want.
e.g. purple, orange
analogWrite(redPin, 40);
analogWrite(greenPin, 150);
analogWrite(bluePin, 200);
I used this commands to create an color. That works fine, but dimming doesn't work.
I used the pwn pins 9, 10, 11
when i used this commands:
analogWrite(redPin, 100);
analogWrite(greenPin, 100);
analogWrite(bluePin, 100);
and i change the values from 100 to 200 for all 3 colors than i can control the brightnes, but i have only a white color.
I want to do this with all possible colors.
I can figure it out how i can do this.
Can somebody help me? Maybe with some example code or some hints