detachInterrupt()

[External Interrupts]

Description

Turns off the given interrupt.

Syntax

detachInterrupt(digitalPinToInterrupt(pin)) (Arduino AVR Boards only, recommended)
detachInterrupt(interrupt) (Arduino AVR Boards only, not recommended)
detachInterrupt(pin) (Arduino SAMD Boards, Due, 101 only)

Parameters

interrupt: the number of the interrupt to disable (see attachInterrupt() for more details).

pin: the pin number of the interrupt to disable

Returns

Nothing