Disable switch off of internal LED when saving power
It may disable GPIO used by sensors
This commit is contained in:
parent
69fd24b756
commit
7e25978455
@ -249,8 +249,6 @@ void setup() {
|
|||||||
}
|
}
|
||||||
#ifdef CONFIG_ENABLE_POWER_SAVE
|
#ifdef CONFIG_ENABLE_POWER_SAVE
|
||||||
wifi_set_sleep_type(LIGHT_SLEEP_T);
|
wifi_set_sleep_type(LIGHT_SLEEP_T);
|
||||||
pinMode(LED_BUILTIN, OUTPUT);
|
|
||||||
digitalWrite(LED_BUILTIN, HIGH); //Active at low level
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#define CONFIG_DHT_PIN 5
|
#define CONFIG_DHT_PIN 5
|
||||||
|
|
||||||
// Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485)
|
// Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485)
|
||||||
// Switch off internal LED
|
|
||||||
//#define CONFIG_ENABLE_POWER_SAVE
|
//#define CONFIG_ENABLE_POWER_SAVE
|
||||||
|
|
||||||
// Disable mDNS can also save power
|
// Disable mDNS can also save power
|
||||||
|
Loading…
Reference in New Issue
Block a user