Brand new Genuino Mega. Native state of PIN 13 ??

So i finally got my Genuino Mega.

When i connected it the very first time The orange led near pin 13 was flashing.
So be it, but that prevented me from testing the connection via with the blink sketch sine it was already blinking. Then i decided to do the hello world sketch and it worked fine, but i could not terminate the program. After pressing the reset button, the program just continued TX green all the time. Even pulling the plug did not help.

I uploaded an empty sketch to kill the program and it worked. But now The orange LED is constant on.

So i made a new sketch that turned LED 13 to LOW and it worked.

It is off now, but it is a sketch that turned it off.

What is the native state of pin 13, and why does my reset button not work?
Is there something wrong with my Aduino Mega ?

Declaring PIN 13 as OUTPUT is enough to turn it off.

Declaring as INPUT will turn it on. :confused:

Nice feature :roll_eyes:

Your reset button does work. It starts your sketch over at the beginning.

Part of the beauty of uploading your sketch into FLASH memory is that you can disconnect the Arduino from the PC you used to program it and your sketch will run whenever you supply power.

When the Arduino first starts up, the LED blinks rapidly in groups of 3 (IIRC) - this is to let you know the bootloader is running, and is incredibly helpful in debugging.

The blink sketch blinks it more slowly, and at a steady pace.