31#if defined(ARDUINO) && ARDUINO >= 100
34#elif defined(PARTICLE)
This file contains the EEPROMBase<T> definition.
Base class to wrap an EEPROM variable.
void write(T const &value) const
Write the value to the EEPROM using the address in this instance.
T read() const
Read the variable value from the EEPROM using the address in this variable.
Provides indirect access to an EEPROM variable.
T set(T const &value)
Set the variable value.
T commit()
Commit the cached value to the EEPROM.
T get() const
Get the variable value.
EEPROMCache(const uint address, T value)
Initialize an instance of EEPROMBase with the specified address and initial value.
EEPROMCache< T > & operator=(T const &value)
Allows assignment of a variable of type T value to be this instance's value.
EEPROMCache(const uint address)
Initialize an instance of EEPROMCache<T> with the specified address.
T _value
The cached value of the EEPROM variable.
T restore()
Restores the cached value by reading from EEPROM.