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
Advice on awaken from sleep please
- cicciocb
- Site Admin
- Posts: 2095
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 450 times
- Been thanked: 1385 times
- Contact:
Re: Advice on awaken from sleep please
No, only one pin is active.
However, you can use 2 diodes with a 3rd pin as wakeup
However, you can use 2 diodes with a 3rd pin as wakeup
Re: Advice on awaken from sleep please
Hi cicciocb[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
is there documentation on how to set a pin active for wakeup?
thanks
Zim
- cicciocb
- Site Admin
- Posts: 2095
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 450 times
- Been thanked: 1385 times
- Contact:
Re: Advice on awaken from sleep please
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