LOLIN D32 How to get hibernate / power off
Posted: Tue May 25, 2021 9:27 am
How can I get de LOLIN D32 on hibernate mode or power off. I now use the code below but it still use around 75uA.
Even if I only use esp_deep_sleep_start (); the current is around 75uA
Code: Select all
WiFi.disconnect(true);
WiFi.mode(WIFI_OFF);
btStop();
adc_power_off();
esp_wifi_stop();
esp_bt_controller_disable();
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_OFF);
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_OFF);
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF);
esp_deep_sleep_start();