[LPM] ESP8266 and DS1820 DeepSleep (#1591)
Add support for the ESP8266 deep sleep and required change for DS1820 sensor used in my project. Allow defining DS1820_RESOLUTION and DS1820_INTERVAL_SEC in ENVIRON without editing config file. Allow DTimeBetweenReadingmq2 Env. MACRO change without editing source config file. Added some an example ENVIRONMENTS Add ESP8266_DEEP_SLEEP_IN_US to nodemcuv2-all-test
This commit is contained in:
1 parent
ac0215b5be
commit
4e51d9ec45
8 files changed
+113
-8
No files matched your search
@@ -294,6 +294,16 @@ static_assert(MQTT_SECURE_SELF_SIGNED_INDEX_DEFAULT < (sizeof(certs_array) / siz
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Deep-sleep for the ESP8266.
|
||||
* Set the wake pin.
|
||||
*/
|
||||
#ifdef ESP8266_DEEP_SLEEP_IN_US
|
||||
# ifndef ESP8266_DEEP_SLEEP_WAKE_PIN
|
||||
# define ESP8266_DEEP_SLEEP_WAKE_PIN D0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*------------------DEEP SLEEP parameters ------------------*/
|
||||
//DEFAULT_LOW_POWER_MODE -1 to normal mode, low power mode can't be used on this build
|
||||
//DEFAULT_LOW_POWER_MODE 0 to normal mode (no power consumption optimisations)
|
||||
|
||||
Reference in new issue
Block a user