I'm trying to go into a deepsleep and wake up on a button press. On wake up I need to know if the button was press or if it woke up because some other action (like booting up because it just got power or the deepsleep timer was up).
Any ideas how to do this?