Gbox 4.20
Grow box automation and monitoring - <a href='https://sites.google.com/site/growboxguy/'>https://sites.google.com/site/growboxguy/</a>
 
Loading...
Searching...
No Matches
Settings.cpp File Reference
#include "Arduino.h"
#include "Settings.h"
#include "SerialLog.h"
Include dependency graph for Settings.cpp:

Go to the source code of this file.

Functions

void saveSettings (Settings *ToSave)
 Store settings in EEPROM - Only updates changed bits.
 
SettingsloadSettings (bool ResetEEPROM)
 Load settings from EEPROM.
 
void restoreDefaults ()
 Load sketch default settings into EEPROM.
 

Function Documentation

◆ loadSettings()

Settings * loadSettings ( bool  ResetEEPROM)

Load settings from EEPROM.

Parameters
ResetEEPROM- Force loading the defaults from the sketch and overwriting the EEPROM with it
Returns
Reference to Settings object
Parameters
ResetEEPROMif the function contains arguments with default values, they must be declared strictly before they are called, otherwise there is a compilation error: '<function name> was not declared in this scope. https://forum.arduino.cc/index.php?topic=606678.0

Definition at line 20 of file Settings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ restoreDefaults()

void restoreDefaults ( )

Load sketch default settings into EEPROM.

Attention
Restarts the Arduino sketch!

Definition at line 45 of file Settings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveSettings()

void saveSettings ( Settings ToSave)

Store settings in EEPROM - Only updates changed bits.

Attention
Use cautiously, EEPROM has a write limit of 100.000 cycles

Definition at line 10 of file Settings.cpp.

Here is the caller graph for this function: