GamebuinoClassic archive

Archive of the Gamebuino Classic wiki, recovered from the Wayback Machine (capture 2017-08-29). Read-only.

EEPROM.update

Description

Write the value corresponding to the address. This function clear the current value

Syntax

EEPROM.update(address, value);

Parameters

Returns

none

Example

 #include <EEPROM.h>
 #include <SPI.h>
 #include <Gamebuino.h>
 
 Gamebuino gb;
 
 byte levels_unlocked = 0;
 
 void setup()
 {
   gb.begin();
   gb.titleScreen(F("Read EEPROM"));
   EEPROM.update(0, levels_unlocked);
 }

See also