Programing Question

Hi,
I'm new . I don't know how to delete the memory of the Arduino Leonardo . when I write a new program it gives me an error like this:

Binary sketch size: 1026 bytes (of a 32256 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00

:confused:

I need advices. Thank you.

(deleted)

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.

"32256 byte maximum" is not right for Leonardo, it suggests that your board selection is Uno.

I have an Asus computer with Windows 10 . I do have the driver installed and I selected the correct board.

(deleted)

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.

Hier.

And.

Arduino 1.0! :o

UPDATE before continuing!

1.8.1 is the latest

162 MB zipped file, expands to 414 MB when unzipped when selecting
"Windows ZIP file for non admin install"

I am trying to upload a sketch and get this error: fatal error: keypad.h: no such file or directory.

I have the Arduino Leonardo board. I selected port com 07.

fatal error: keypad.h: no such file or directory

.. means: the compiler fails to load and compile the library "keypad.h".

So just install that library in the right directory and this message will be gone.

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 = ).

Do you press the reset button before uploading?

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.

This is a quote from here.

What do you mean "auto-reset"?

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

I pressed the button 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.
An error occurred while uploading the sketch

and what do you mean "auto-reset"?

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.