123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
-
-
- #ifndef __ESP_ENV_MEMORY__
- #define __ESP_ENV_MEMORY__
-
- struct ConfigMemory {
- double sht_temp_off;
- double bme1_temp_off;
- double bme2_temp_off;
-
- #ifdef FEATURE_UI
- int touch_calibrate_left;
- int touch_calibrate_right;
- int touch_calibrate_top;
- int touch_calibrate_bottom;
- #endif
-
- ConfigMemory() {
- sht_temp_off = 0.0;
- bme1_temp_off = 0.0;
- bme2_temp_off = 0.0;
-
- #ifdef FEATURE_UI
- touch_calibrate_left = 0;
- touch_calibrate_right = 0;
- touch_calibrate_top = 0;
- touch_calibrate_bottom = 0;
- #endif
- }
- };
-
- ConfigMemory mem_read();
- void mem_write(ConfigMemory mem);
-
- extern ConfigMemory config;
-
- #endif
|