Interrupts

detachInterrupt()

Turns off the given interrupt.

// PROTOTYPE
bool detachInterrupt(uint16_t pin);
// SYNTAX
detachInterrupt(pin);

pin is the pin number of the interrupt to disable.

The detachInterrpt() function is not interrupt-safe. Do not call it from within an interrupt service routine (ISR).