Turns off the given interrupt.


detachInterrupt(digitalPinToInterrupt(pin)) (recommended)

detachInterrupt(interrupt) (not recommended)

detachInterrupt(pin) (Not recommended. Additionally, this syntax only works on Arduino SAMD Boards, Uno WiFi Rev2, Due, and 101.)

Parameter Values

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

Return Values

  • Nothing

See Also

Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.