Go Down

Topic: Missing line in eeprom_clear? (Read 879 times) previous topic - next topic



I am fairly new to arduino programming .
After my first small projects I checked some of the example files.
The sample code "eeprom_clear" (see http://arduino.cc/en/Tutorial/EEPROMClear or Examples->EEPROM->eeprom_clear in the IDE) does not work as intended since the (led) port 13 is not declared to be in output mode.
So, the missing line is
pinMode(13, OUTPUT);

Is this a mistake on my part or a case to be reported to the dev team?
Best regards


Is this a mistake on my part


or a case to be reported to the dev team?

Yes. In the Website and Forum section.
The art of getting good answers lies in asking good questions.


In the past this pin was initialised to be an output by the boot loader. It now no longer is. It looks like they have not updated this to take the change into account. Failing to initialise any pin you use is however very bad practice.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131