Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Sep 30, 2022

On ESP32, merely enabling the pin-setting holding mechanism during deep sleep consumed at least 250 uA of extra current, even if no pins were being hold. This compared with about 75 uA total on Feather ESP32 V2 when the mechanism was not being used. Rework the pin-holding logic so that the hardware mechanism is not invoked unless needed. Added a caveat in the documentation.

I think this idiosyncrasy may be explained here: espressif/esp-idf#8249.

Also did a minor cleanup in Feather ESP32-S2 TFT.

@ladyada This turns out to be the reason for the confusing behavior I mentioned yesterday. I have achieved Arduino-level deep sleep power levels now with this fix.

@kattni You may want to re-test with this fix.

@dhalbert dhalbert requested a review from jepler September 30, 2022 00:14
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it does what it says. I'll approve but suggest waiting until someone (kattni?) can double check the power result.

@dhalbert
Copy link
Collaborator Author

dhalbert commented Oct 1, 2022

I'll merge this now anyway, to get some more eyes on it. I Did test it, so at least for me it works.

@dhalbert dhalbert merged commit f9e655d into adafruit:main Oct 1, 2022
@dhalbert dhalbert deleted the espressif-deep-sleep-hold-pins branch October 1, 2022 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants