Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
3 years, 2 months ago.
Wake up BLE Nano from deep sleep using "custom" interrupt
I am having trouble with the following: I want to set my BLE Nano into deep sleep, where he only listens to an analog pin. The device should awake when the user presses on a pressure sensor really hard. I know about the interruptIn. But I don't want to trigger the interrupt only because the value changes just a little bit. Can I somehow specify that I want to trigger the interrupt when value difference is really high (the user presses really high) in a short period of time? Any suggestions are welcome.