Skip to content
Discussion options

You must be logged in to vote

The only reason, that I can think of, for using lightsleep on the ESP32 is that you can retain program state, ie pin hold. It is like a pause. Yes, you need to do a sta.active(False)before going to lightsleep and then a sta.active(True) when waking-up.

If you are not wanting to hold any output ports then deepsleep could save you more current. Be aware, if you are using a dev board with a USB to UART chip on it that it sucks current as well.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mu88
Comment options

You must be logged in to vote
4 replies
@davefes
Comment options

@robert-hh
Comment options

@robert-hh
Comment options

@davefes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants