AlashSettings

Settings in EEPROM as one struct: checksum, versions and defaults, wear leveling, power-loss safe writes, migration and delayed autosave. AVR, ESP8266, ESP32.

Author
Alash Electronics
Maintainer
Alash engineering
Website
https://github.com/Alash-electronics/AlashSettings
Category
Data Storage
License
MIT
Library Type
Contributed
Architectures
avr, esp32, esp8266

Stores your settings struct in EEPROM safely: AlashSettings<Config> settings; settings.begin(defaults); settings.data.volume = 7; settings.save(). A checksum catches corrupt data, a version number catches a changed struct, and the first start loads your defaults. Writes rotate over several slots to multiply EEPROM life and a power loss during a write never destroys the previous data. onMigrate() carries old data to a new struct version, autosave() writes only after the value stops changing, save() skips writing when nothing changed. Uses the built-in EEPROM library on Arduino AVR, ESP8266 and ESP32 (begin and commit handled). Explains problems in Russian, Kazakh or English. Examples included, made for classes and kits by Alash Electronics.

Downloads

Filename Release Date File Size
AlashSettings-1.0.1.zip 2026-11-02 33.61 KiB
AlashSettings-1.0.0.zip 2026-11-02 32.36 KiB