add reset sketch and reorganize files
This commit is contained in:
12
spybug/settings.hh
Normal file
12
spybug/settings.hh
Normal file
@@ -0,0 +1,12 @@
|
||||
#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); }
|
||||
};
|
||||
Reference in New Issue
Block a user