Skip to content

Commit 14436b5

Browse files
committed
Clarify documentation in attach/detachInterrupt syntax section
Feedback was recieved that it wasn't clear whether the second sentence of the attachInterrupt(pin, ISR, mode) syntax description was related to the first sentence (i.e. is the syntax not recommended for Arduino SAMD Boards, Uno WiFi Rev2, Due, 101 only and the syntax is recommended for any other board type?).
1 parent 674a92e commit 14436b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Language/Functions/External Interrupts/attachInterrupt.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ For more information on interrupts, see http://gammon.com.au/interrupts[Nick Gam
5959
=== Syntax
6060
`attachInterrupt(digitalPinToInterrupt(pin), ISR, mode);` (recommended) +
6161
`attachInterrupt(interrupt, ISR, mode);` (not recommended) +
62-
`attachInterrupt(pin, ISR, mode);` (Not recommended. Arduino SAMD Boards, Uno WiFi Rev2, Due, 101 only)
62+
`attachInterrupt(pin, ISR, mode);` (Not recommended. Additionally, this syntax only works on Arduino SAMD Boards, Uno WiFi Rev2, Due, and 101.)
6363

6464

6565
[float]

Language/Functions/External Interrupts/detachInterrupt.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Turns off the given interrupt.
2525
=== Syntax
2626
`detachInterrupt(digitalPinToInterrupt(pin))` (recommended) +
2727
`detachInterrupt(interrupt)` (not recommended) +
28-
`detachInterrupt(pin)` (Not recommended. Arduino SAMD Boards, Uno WiFi Rev2, Due, 101 only)
28+
`detachInterrupt(pin)` (Not recommended. Additionally, this syntax only works on Arduino SAMD Boards, Uno WiFi Rev2, Due, and 101.)
2929

3030
[float]
3131
=== Parameters

0 commit comments

Comments
 (0)