set_bank()

Description

Set to use the 16 KB bank of virtual EEPROM in the on-board flash.

Syntax


EEPROM.set_bank(flag)

Parameters

flag: indicate whether the EEPROM library shall access the 16 KB bank of virtual EEPROM (bool)

If flag = true, then the EEPROM library access the 16 KB bank of virtual EEPROM, and if flag = false, access the 200-byte CMOS bank of virtual EEPROM. The default is false (access the CMOS bank of virtual EEPROM).

Returns

none

Example


#include <EEPROM.h>

void setup()
{
  EEPROM.set_bank(true);
  for (int i = 0; i < 16000; i++)
    EEPROM.write(i, i & 0xff);
}

void loop()
{
} 

See also

EEPROM.read()
EEPROM.write()


Libraries Reference Home

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.