Beginners question

Hello!
I just got my Duemilanove and now following tutorials and examples.
There is on thing that I’m not very sure -

For example when i make a blinking led code and upload it to Arduino, and then i want to upload another code - Do I have to press the reset button on the Arduino board every time when i want to upload new code?

I saw a Youtube video, where people pressed it when uploading a new code, although i have uploaded many codes and i have never pressed the reset button…
And also when i have to upload multiple files (like in melody example, where is main code + pitches.h file), then does the programming tool uploads both code-files or do i have to upload these separately (first i choose main code and upload and then i choose pitches.h and upload) ?

For example when i make a blinking led code and upload it to Arduino, and then i want to upload another code - Do I have to press the reset button on the Arduino board all the time when i want to upload new code?

The 'newer' standard Arduino board design automatically resets the board just prior to uploading a sketch. This is done by the Arduino IDE software, so the reset switch should not be used to upload sketches. The older original boards from several years ago did not include the auto-reset feature, so one did have to reset the board manually to upload a new sketch.

And also when i have to upload multiple files (like in melody example, where is main code + pitches.h file), then does the programming tool uploads both code-files or do i have to upload these separately (first i choose main code and upload and then i choose pitches.h and upload) ?

The sketch uploading in only one single operation, anything and everything you want included in your sketch has to be done via the IDE main sketch via include statements or tab code additions.
Lefty

thanks!
I have one more question about arduino software “Arduino 0018” -
When I make a new sketch, then can i upload it right away or do i have to compile it first?

When i choose example from the menu, i havent compiled it , just upload and it works… I dont understand that compiling thing

When I make a new sketch, then can i upload it right away, when ready.... or do i have to compile it first? When i choose an example from the menu, i havent compiled it , just upload and it works... I dont understand that compiling thing

When you push the upload button it performs a compile and a upload all in one operation. You don't need to hit the compile button on a sketch that you have already tested and used before. The compile button alone is used while your creating a new or modifying a existing sketch, but you don't want to upload at that time, just to test if there are any errors in the code.

Make sense?

Lefty

yea, sorry for noobish questions :stuck_out_tongue:

One of the main purposes of this forum is to help people with noobish questions. There will come the time when you will be able to return the favor and help other newcomers to the Arduino world. :wink:

Lefty