2023-06-13 18:01:13 +00:00
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
|
|
|
#include <Preferences.h>
|
|
|
|
|
|
|
|
class Settings {
|
|
|
|
private:
|
|
|
|
bool disableDoor;
|
2023-12-28 09:14:36 +00:00
|
|
|
String doorMode;
|
2023-06-13 18:01:13 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
Settings();
|
|
|
|
|
|
|
|
void loadFromEEPROM();
|
|
|
|
void saveToEEPROM();
|
|
|
|
|
|
|
|
void setDisableDoor(bool value);
|
2023-12-28 09:14:36 +00:00
|
|
|
bool getDoorDisabled();
|
|
|
|
|
|
|
|
void setDoorMode(String value);
|
|
|
|
String getDoorMode();
|
2023-06-13 18:01:13 +00:00
|
|
|
};
|
|
|
|
|
2024-01-30 16:33:00 +00:00
|
|
|
extern Settings settings;
|
|
|
|
|
2023-06-13 18:01:13 +00:00
|
|
|
#endif // SETTINGS_H
|