Two leds and a button

Hello! I already create a circuit in which I can push a button and turn on a led and when I re-push the button the led turns off.
But I don't understand how to blink a led when i push button to turn on.
Thanks

Take a look at the blink without delay example in the IDE, and the state change example, also in the IDE.

Experiment.
Enjoy.

I would suggest purchasing the Arduino cookbook and spending time on line following the many tutorials available. This will get you started and hopefully you can solve your problem at that point. This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil

gilshultz:
I would suggest purchasing the Arduino cookbook and spending time on line following the many tutorials available. This will get you started and hopefully you can solve your problem at that point.

Gil, who would possibly guess that learning to program would help solve the problem? Ask your self, does this post, or most of the posts you make actually really help?

For a bit of real help:-

But I don't understand how to blink a led when i push button to turn on.

You have a Boolean variable that you set or clear when you push the button. Then you use that t decide if the LED is turned off or it blinks.

Grumpy_Mike:
Ask your self, does this post, or most of the posts you make actually really help?

To quote the late Graham Chapman from a very early MPFC episode 50 years ago:

A fair question, and one that in recent weeks has been mooch on moi moind....

+1 for GrumpyMike
I doubt if a lot of people would understand what MPFC " Monty Pythons Flying Circus" means. Used to love it.

If my memory serves me correctly this was the flying sheep sketch from the first series about 1971.

Grumpy_Mike:
If my memory serves me correctly this was the flying sheep sketch from the first series about 1971.

1969 actually but otherwise yes indeed

detown:
+1 for GrumpyMike
I doubt if a lot of people would understand what MPFC " Monty Pythons Flying Circus" means. Used to love it.

Suspect a lot of the contributors here - the ones that answer questions - appear to be of an age to remember things from 1969 quite well! :astonished: