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.
12 years, 1 month ago.
disable pin interrupt
Hi, I have an interrupt pin working but I need to disable it (interrupts become very frequent). Can this be done?
Thanks, Ian
Question relating to:
1 Answer
12 years, 1 month ago.
To disable an interrupt you can use the same function as the one you used to enable it, but instead of giving it a pointer to your function, give it a NULL pointer. So for example:
interrupt_pin.rise(NULL);