0

Help codding I'm lost one button , three leds

I need help from you to create code for this circuit:http://prntscr.com/rqvxq4

This is what I need the code to do:

1.When you turn on arduino the green led will turn on too without pressing the button.

2.When you press the button the green led turns off and the next one(orange)turns on.

3.When you press the button again the orange led turns off and the blue led turns on.

4.When you press the button again the blue led turns off and the green led turns on.

I want it to work for ever so every time I click the button different led will turn off from left to right I hope you understand and thanks for help in advance :)

I really need help I don't know what to do.

0 comments

Please sign in to leave a comment.