esp-idf-hal icon indicating copy to clipboard operation
esp-idf-hal copied to clipboard

Light and Deep Sleep

Open oyvindnetland opened this issue 2 years ago • 2 comments
trafficstars

Im testing light and deep sleep for a battery powered device now, and seems to me that this is currently missing from esp-rs, at least from what I could tell.

Is this something that would be nice to add, if so, I can take a look at turning my experimentation into something generic.

I think this should be in this repo, agree?

If anybody have any ideas or strong opinion on what something like that should look like, please let me know.

oyvindnetland avatar Aug 08 '23 19:08 oyvindnetland

PR for light/deep sleep greatly appreciated! Please start simple, and then we can refine the PR with discussion / suggestions. Note that the raw ESP IDF APIs for light/deep sleep are somewhat strange, so it might take a few iterations until we figure out how a good, safe API sahould look like.

ivmarkov avatar Aug 10 '23 16:08 ivmarkov

Sounds like a plan

oyvindnetland avatar Aug 12 '23 19:08 oyvindnetland