Can i use Interrupt function from sleep mode

quangminh.le0701
Posts: 6
Joined: Mon Jul 01, 2019 2:55 pm

Can i use Interrupt function from sleep mode

Postby quangminh.le0701 » Mon Jul 29, 2019 12:44 pm

I'm doing IoT project, my device will sleep to save power.
As i understand, if i use deep sleep mode, then every wake up, the code will run setup(); in light sleep, the core isnt sleep, so it only run loop().
i know how to use wakeup source to wakeup like timer, or external wakeup.
all i want is if there is an external wakeup, it will jump into interrupt task like this one [GPIO Interrupt][/https://lastminuteengineers.com/handlin ... -tutorial/]
Can i do that?

Who is online

Users browsing this forum: Bing [Bot] and 136 guests