Skip to content

Commit 64917c2

Browse files
authored
Merge PR arduino#524 "Update/correct attach/detachInterrupts pin parameter compatibility documentation" from per1234
Update/correct attach/detachInterrupts pin parameter compatibility documentation
2 parents 07a3684 + 6d51498 commit 64917c2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Language/Functions/External Interrupts/attachInterrupt.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ 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 Due, Zero, MKR1000, 101 only)
62+
`attachInterrupt(pin, ISR, mode);` (Not recommended. Arduino SAMD Boards, Uno WiFi Rev2, Due, 101 only)
6363

6464

6565
[float]
6666
=== Parameters
6767
`interrupt`: the number of the interrupt (`int`) +
68-
`pin`: the pin number _(Arduino Due, Zero, MKR1000 only)_ +
68+
`pin`: the pin number +
6969
`ISR`: the ISR to call when the interrupt occurs; this function must take no parameters and return nothing. This function is sometimes referred to as an interrupt service routine. +
7070
`mode`: defines when the interrupt should be triggered. Four constants are predefined as valid values: +
7171

Language/Functions/External Interrupts/detachInterrupt.adoc

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

2424
[float]
2525
=== Syntax
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)
26+
`detachInterrupt(digitalPinToInterrupt(pin))` (recommended) +
27+
`detachInterrupt(interrupt)` (not recommended) +
28+
`detachInterrupt(pin)` (Not recommended. Arduino SAMD Boards, Uno WiFi Rev2, Due, 101 only)
2929

3030
[float]
3131
=== Parameters

0 commit comments

Comments
 (0)