You can avoid questions like the ones from @spycatcher2k if you would have read the forum rules; they help both sides - you and the supporter(s) - to get focus on your issue without having to ask a dozen times back and forth until we know where exactly your problem lies.
Have a look at my signature where you will find a URL how to use this forum.
I can tell you that I selected the board Arduino uno becase the board Arduino Leonardo doesn't appear . I have an Arduino Leonardo. I selected the port COM1. The first programm that i've uploaded works continuos.
I've updated the program and now it shoes me this
Sketch uses 4414 bytes (15%) of program storage space. Maximum is 28672 bytes.
Global variables use 148 bytes (5%) of dynamic memory, leaving 2412 bytes for local variables. Maximum is 2560 bytes.
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "Ε£"; type = ΒΈ
Software Version = ).
the way you use the physical reset button to perform an upload if the auto-reset isn't working. Press and hold the reset button on the Leonardo or Micro, then hit the upload button in the Arduino software. Only release the reset button after you see the message "Uploading..." appear in the software's status bar. When you do so, the bootloader will start, creating a new virtual (CDC) serial port on the computer. The software will see that port appear and perform the upload using it. Again, this is only necessary if the normal upload process (i.e. just pressing the uploading button) doesn't work.
Now it shoes me this
Sketch uses 4414 bytes (15%) of program storage space. Maximum is 28672 bytes.
Global variables use 148 bytes (5%) of dynamic memory, leaving 2412 bytes for local variables. Maximum is 2560 bytes.
An error occurred while uploading the sketch
Sketch uses 4414 bytes (15%) of program storage space. Maximum is 28672 bytes.
Global variables use 148 bytes (5%) of dynamic memory, leaving 2412 bytes for local variables. Maximum is 2560 bytes.
An error occurred while uploading the sketch
Did you really read my post #14?
Click on the attached link there and you will know exactly why this happens and what you have to do.
When uploading a sketch the electronics on your board normally produces an autoreset which is needed to put the board in programming mode.
With Leonardos "autoreset" is not always reliably possible. That's why you have sometimes to help your poor little Leonardo by pressing the reset button on the board. When and how you shall do that - that's in the description of post #14 (incl. a link where everything is explained in more detail).
Please follow these instructions exactly (the real timing is critical!) and it will do.