Skip to content

Fade Switch

emilyjacob96 edited this page Oct 17, 2017 · 2 revisions

I have a green, blue and red LED and they are worked and timed differently. When I press on the the button down for second, all three lights start to dim slowly, but green turns off first, and what is left are the blue and red lights as they dim all the way to 0 and they start back to full brightness at the same time. And when I press the button for a millisecond it turns the red on and the green off, and then alternates to both, and then the green off. There are several alternations in the process of pressing the button quickly. It was a very long process, but I was able to understand and take more time on these LED lights and the arduino functions!

code

video

fs_1

fs_2

fs_3

Clone this wiki locally