From 257dbf5e5cf96d537abe13d276c451fe97a89e79 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 24 Jun 2018 20:19:37 -0700 Subject: [PATCH] Correct detachInterrupt() parameters documentation - Remove non-existent signature without parameters. - Document Arduino AVR Boards' interrupt parameter, following the style of attachInterrupt()'s documentation. - Update the list of boards that support the pin parameter. --- .../Functions/External Interrupts/detachInterrupt.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Language/Functions/External Interrupts/detachInterrupt.adoc b/Language/Functions/External Interrupts/detachInterrupt.adoc index ddd26f082..88bbc8b22 100644 --- a/Language/Functions/External Interrupts/detachInterrupt.adoc +++ b/Language/Functions/External Interrupts/detachInterrupt.adoc @@ -23,14 +23,15 @@ Turns off the given interrupt. [float] === Syntax -`detachInterrupt()` + -`detachInterrupt(pin)` (Arduino Due only) +`detachInterrupt(digitalPinToInterrupt(pin))` (Arduino AVR Boards only, recommended) + +`detachInterrupt(interrupt)` (Arduino AVR Boards only, not recommended) + +`detachInterrupt(pin)` (Arduino SAMD Boards, Due, 101 only) [float] === Parameters `interrupt`: the number of the interrupt to disable (see link:../attachinterrupt[attachInterrupt()] for more details). -`pin`: the pin number of the interrupt to disable (Arduino Due only) +`pin`: the pin number of the interrupt to disable [float] === Returns