Language | Libraries | Comparison

EEPROM.write(address, value)

Description

Write a byte to the EEPROM.

Parameters

address: the location to write to, from 0 to 511 (int)

value: the value to write, from 0 to 255 (byte)

Returns

none

Example

#include <EEPROM.h>

void setup()
{
  for (int i = 0; i < 512; i++)
    EEPROM.write(i, i);
}

void loop()
{
}

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.