works for three leds pin 13 led orange, pin 12 led red and pin 11 LED green, I want you to start the arduino I pledge the orange LED and the red, after 5 seconds, then exchange the red LED turns off and turn the green.
Keep in mind that the loop function gets repeated. So about a microsecond after you make pin 11 high the whole thing starts over and makes 12 and 13 high again.
perfect, I would like to remain always lit orange and green after the change and the red always off, now how could I do to add a button to start the function and another to cut
If you have a look at button tutorial, you can take the button related code. Instead of turn on a led, you simply reset 'a' back to zero. It will run your sequence one more time.