Skip to content

Commit 257dbf5

Browse files
committed
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.
1 parent 5a4248c commit 257dbf5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Language/Functions/External Interrupts/detachInterrupt.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ Turns off the given interrupt.
2323

2424
[float]
2525
=== Syntax
26-
`detachInterrupt()` +
27-
`detachInterrupt(pin)` (Arduino Due only)
26+
`detachInterrupt(digitalPinToInterrupt(pin))` (Arduino AVR Boards only, recommended) +
27+
`detachInterrupt(interrupt)` (Arduino AVR Boards only, not recommended) +
28+
`detachInterrupt(pin)` (Arduino SAMD Boards, Due, 101 only)
2829

2930
[float]
3031
=== Parameters
3132
`interrupt`: the number of the interrupt to disable (see link:../attachinterrupt[attachInterrupt()] for more details).
3233

33-
`pin`: the pin number of the interrupt to disable (Arduino Due only)
34+
`pin`: the pin number of the interrupt to disable
3435

3536
[float]
3637
=== Returns

0 commit comments

Comments
 (0)