Go Down

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

fasp

Hi,

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

PaulS

Quote
Is this a mistake on my part

No.

Quote
or a case to be reported to the dev team?

Yes. In the Website and Forum section.


Grumpy_Mike

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