[EEPROM]
説明
Select the bank of virtual EEPROM.
This function is available from 86Duino Coding 102. For 86Duino Coding 101 or early versions, you should use set_bank() instead.
構文
EEPROM.setBank(bank)
媒介変数
bank: indicate the bank of virtual EEPROM you want to use. EEPROM_16K is the 16 KB bank of virtual EEPROM and EEPROM_200B is the 200-byte CMOS bank of virtual EEPROM. The default is EEPROM_16K.
戻り値
none
例
#include <EEPROM.h>
void setup()
{
EEPROM.setBank(EEPROM_200B);
for (int i = 0; i < 200; i++)
EEPROM.write(i, i & 0xff);
EEPROM.setBank(EEPROM_16K);
for (int i = 0; i < 16000; i++)
EEPROM.write(i, i & 0xff);
}
void loop()
{
} 参照
ライブラリリファレンスホーム
86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。