detachInterrupt()

Description

Turns off the given interrupt.

Syntax

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

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.

※ OUR MESSAGES