esp-idf-hal
esp-idf-hal copied to clipboard
Light and Deep Sleep
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.
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.
Sounds like a plan