Page 1 of 1

Advice on awaken from sleep please

Posted: Wed Mar 13, 2024 5:21 pm
by Zim
Hi
I have two membrane switches connected to IO pins set as interrupts. They are used to run a menu. To increase battery life, the module sleeps after a few minutes. Is it possible to have module awaken if either button is pressed?

Thanks
Zim

Re: Advice on awaken from sleep please

Posted: Wed Mar 13, 2024 5:52 pm
by cicciocb
No, only one pin is active.
However, you can use 2 diodes with a 3rd pin as wakeup

Re: Advice on awaken from sleep please

Posted: Wed Mar 13, 2024 8:15 pm
by Zim
Hey cicciocb! Great idea! I'll work with that!

thanks
Zim

Re: Advice on awaken from sleep please

Posted: Tue Apr 30, 2024 4:14 pm
by Zim
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Mar 13, 2024 5:52 pm No, only one pin is active.
However, you can use 2 diodes with a 3rd pin as wakeup
Hi cicciocb
is there documentation on how to set a pin active for wakeup?
thanks
Zim

Re: Advice on awaken from sleep please

Posted: Wed May 01, 2024 7:34 am
by cicciocb
You can find [Local Link Removed for Guests]

Code: [Local Link Removed for Guests]

' Sleeps for 3600 seconds (1 Hour) or until the pin 32 goes to high

SLEEP 3600, 32, 1