12345678910111213141516171819202122232425262728293031323334 |
- /*
- * memory.h
- *
- * ESP8266 / ESP32 Environmental Sensor
- *
- * ----------------------------------------------------------------------------
- * "THE BEER-WARE LICENSE" (Revision 42):
- * <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
- * you can do whatever you want with this stuff. If we meet some day, and you
- * think this stuff is worth it, you can buy me a beer in return. Thomas Buck
- * ----------------------------------------------------------------------------
- */
-
- #ifndef __ESP_ENV_MEMORY__
- #define __ESP_ENV_MEMORY__
-
- struct ConfigMemory {
- double sht_temp_off;
- double bme1_temp_off;
- double bme2_temp_off;
-
- ConfigMemory() {
- sht_temp_off = 0.0;
- bme1_temp_off = 0.0;
- bme2_temp_off = 0.0;
- }
- };
-
- ConfigMemory mem_read();
- void mem_write(ConfigMemory mem);
-
- extern ConfigMemory config;
-
- #endif // __ESP_ENV_MEMORY__
|