EEPROM Clear

The microcontroller on the Arduino and Genuino boards have 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive).

This example illustrates how to set of all of those bytes to 0, initializing them to hold new information, using the EEPROM.write() function.

Hardware Required

  • Arduino or Genuino Board

Circuit

There is no circuit for this example.

ArduinoUNO bb

image developed using Fritzing. For more circuit examples, see the Fritzing project page

Schematics

ArduinoUNO sch

image developed using Fritzing. For more circuit examples, see the Fritzing project page

Code

See also

Last revision 2018/05/17 by SM