Pico Micropython Wake early from machine.lightsleep #11089
-
|
I’m trying to figure out how to interrupt a machine.lightsleep on a GPIO event. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
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 |
Beta Was this translation helpful? Give feedback.
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.