Skip to content
forked from jwrw/ESP_EEPROM

An improved EEPROM emulation Arduino library for ESP8266

Notifications You must be signed in to change notification settings

Magke/ESP_EEPROM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP_EEPROM

An improved EEPROM emulation Arduino library for ESP8266

The ESP8266 family doesn't have genuine EEPROM memory so for Arduino it is normally emulated by using a section of flash memory.

With the standard ESP8266 EEPROM library, the sector needs to be re-flashed every time the changed EEPROM data needs to be saved. For small amounts of EEPROM data this is very slow and will wear out the flash memory more quickly. This library writes a new copy of your data when you save (commit) it and keeps track of where in the sector the most recent copy is kept using a bitmap. The flash sector only needs to be erased when there is no more space for copies in the flash sector. You can keep track of this yourself to do a time-consuming erase when most convenient or the library will do it for you when there is no more space for the data when you commit it.

See https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ for details on creating and updating a library to be made available via the Arduino Library Manager.

About

An improved EEPROM emulation Arduino library for ESP8266

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C++ 100.0%