Skip to content
Discussion options

You must be logged in to vote

I think you'll need to wake up, say once per second, and check the pin.

The additional power consumption is probably quite small: if checking a pin takes 20μs and uses 20mA then the current consumption is 20*20/1_000_000mA i.e. 0.4μA. Even if my guesses are out by a couple of orders of magnitude, the penalty is far less than the light sleep current.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pollardd
Comment options

@peterhinch
Comment options

@pollardd
Comment options

Answer selected by pollardd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants