Page 1 of 1

Code for fading in and out while also changing colour.

Posted: Fri Sep 29, 2017 10:32 pm
by Oliver_Fr
Hi there Im having trouble with coding a specific task on my Arduino Uno. I've set up a simple RGB LED circuit. I'm trying to write code, which slowly increases the brightness of an RGB LED for 4 seconds, then sustain maximum brightness for 7 seconds, then slowly fade out for 8 seconds. While this is happening, it should also fade from yellow to orange and finally red. Any help would be appreciated. Thanks.

https://pastebin.com/HzsxmMuJ

Re: Code for fading in and out while also changing colour.

Posted: Fri Nov 03, 2017 2:38 pm
by Valen
Your code seems fine. Is there something wrong?

Re: Code for fading in and out while also changing colour.

Posted: Sat Nov 04, 2017 7:09 am
by DanV
What are the issues you have.
Surely you have run the code and something happened.
Can you describe what happened and what you want it to do differently?