11 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

11 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);

Accepted Answer