Skip to content

Commit 5d1c3c8

Browse files
authored
Merge pull request #381 from per1234/detachinterrupt-pin-parameter
Correct detachInterrupt() parameters documentation
2 parents 67e50ac + 257dbf5 commit 5d1c3c8

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)