Skip to content

EEPROM library eeprom_clear example lacks pinMode [imported] #1054

Closed
@cmaglie

Description

@cmaglie

This is Issue 1054 moved from a Google Code project.
Added by 2012-09-28T21:23:33.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

The eeprom_clear example uses digitalWrite without first using pinMode. Here is the example. Before digitalWrite(13, HIGH), pinMode(13, OUTPUT) should be used to configure the pin.

include <EEPROM.h>

void setup()
{
// write a 0 to all 512 bytes of the EEPROM
for (int i = 0; i < 512; i++)
EEPROM.write(i, 0);

// turn the LED on when we're done
digitalWrite(13, HIGH);
}

void loop()
{
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions