adventsfenster/include/eeprom.h

40 lines
528 B
C
Raw Normal View History

2021-11-03 17:55:42 +01:00
#ifndef __eeprom_H__
#define __eeprom_H__
#include <TridentTD_ESP32NVS.h>
class eeprom
{
private:
public:
eeprom();
~eeprom();
void set_int(String name , uint64_t val );
uint64_t get_int(String name );
void begin();
2021-11-03 17:55:42 +01:00
};
eeprom::eeprom()
{
}
eeprom::~eeprom()
{
}
void eeprom::begin()
{
NVS.begin();
}
2021-11-03 17:55:42 +01:00
void eeprom::set_int(String name , uint64_t val )
{
NVS.setInt(name, val);
}
uint64_t eeprom::get_int(String name )
{
return NVS.getInt(name);
}
#endif