Syntax
void write(
    int addr, 
    uint8_t value
);
ContentsIndex
PreviousUpNext
LEEPROMClass::write Method
LEEPROMClass Class | Example
Syntax
void write(
    int addr, 
    uint8_t value
);
Description

Writes a byte to the EEPROM.

Parameters
Parameters 
Description 
int addr 
addr: The location to write to, starting from 0 (Integer). 
uint8_t value 
value: The value to write, from 0 to 255 (Bytes). 
Returns

void

Example
#include <EEPROM.h>

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

void loop()
{
}
File

LEEPROM.h

Class