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
- Language : attachInterrupt()
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Please note: These are Amazon affiliate links. If you buy the components through these links, We will get a commission at no extra cost to you. We appreciate it.