2022-04-19 16:48:43 +02:00
|
|
|
// Copyright 2022 Darwin Schuppan <darwin@nobrain.org>
|
|
|
|
// SPDX license identifier: MIT
|
|
|
|
|
2022-04-19 16:44:54 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <EEPROM.h>
|
|
|
|
|
|
|
|
#define EEADDR_SETTINGS 0x00
|
|
|
|
struct EEPROM_Settings_Class {
|
|
|
|
unsigned long recording_delay = 0l;
|
|
|
|
bool serial_log = true;
|
|
|
|
|
|
|
|
inline void load() { EEPROM.get(EEADDR_SETTINGS, *this); }
|
|
|
|
inline void save() { EEPROM.put(EEADDR_SETTINGS, *this); }
|
|
|
|
};
|
2022-04-19 19:30:15 +02:00
|
|
|
|
|
|
|
extern EEPROM_Settings_Class settings;
|