Skip to content

Commit 8bd3b11

Browse files
authored
Merge pull request #936 from arduino/karlsoderby/interrupts
Interrupt sections updated
2 parents ade15f1 + 3e77888 commit 8bd3b11

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Language/Functions/External Interrupts/attachInterrupt.adoc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ The first parameter to `attachInterrupt()` is an interrupt number. Normally you
1919

2020
[options="header"]
2121
|===================================================
22-
|Board |Digital Pins Usable For Interrupts
23-
|Uno, Nano, Mini, other 328-based |2, 3
24-
|UNO R4 Minima, UNO R4 WiFi |2, 3
25-
|Uno WiFi Rev.2, Nano Every |all digital pins
26-
|Mega, Mega2560, MegaADK |2, 3, 18, 19, 20, 21 (*pins 20 & 21* are not available to use for interrupts while they are used for I2C communication; they also have external pull-ups that cannot be disabled)
27-
|Micro, Leonardo, other 32u4-based |0, 1, 2, 3, 7
28-
|Zero |all digital pins, except 4
29-
|MKR Family boards |0, 1, 4, 5, 6, 7, 8, 9, A1, A2
30-
|Nano 33 IoT |2, 3, 9, 10, 11, 13, A1, A5, A7
31-
|Nano 33 BLE, Nano 33 BLE Sense |all pins
32-
|Nano RP2040 Connect |all pins except A6/A7
33-
|Nano ESP32 |all pins
34-
|GIGA R1 WiFi |all pins
35-
|Due |all digital pins
36-
|101 |all digital pins (Only pins 2, 5, 7, 8, 10, 11, 12, 13 work with *CHANGE*)
22+
|Board |Digital Pins Usable For Interrupts| Notes
23+
|Uno Rev3, Nano, Mini, other 328-based |2, 3|
24+
|UNO R4 Minima, UNO R4 WiFi |2, 3|
25+
|Uno WiFi Rev2, Nano Every |All digital pins|
26+
|Mega, Mega2560, MegaADK |2, 3, 18, 19, 20, 21 |(*pins 20 & 21* are not available to use for interrupts while they are used for I2C communication; they also have external pull-ups that cannot be disabled)
27+
|Micro, Leonardo |0, 1, 2, 3, 7|
28+
|Zero |0-3, 5-13, A0-A5| Pin 4 cannot be used as an interrupt.
29+
|MKR Family boards |0, 1, 4, 5, 6, 7, 8, 9, A1, A2|
30+
|Nano 33 IoT |2, 3, 9, 10, 11, 13, A1, A5, A7|
31+
|Nano 33 BLE, Nano 33 BLE Sense (rev 1 & 2) |all pins|
32+
|Nano RP2040 Connect |0-13, A0-A5|
33+
|Nano ESP32 |all pins|
34+
|GIGA R1 WiFi |all pins|
35+
|Due |all digital pins|
36+
|101 |all digital pins | (Only pins 2, 5, 7, 8, 10, 11, 12, 13 work with *CHANGE*))
3737
|===================================================
3838

3939
[%hardbreaks]
@@ -137,8 +137,8 @@ Note that in the table below, the interrupt numbers refer to the number to be pa
137137
|Mega2560 | 2 | 3 | 21 | 20 | 19 | 18
138138
|32u4 based (e.g Leonardo, Micro) | 3 | 2 | 0 | 1 | 7 |
139139
|===================================================
140-
For Uno WiFiRev.2, Due, Zero, MKR Family and 101 boards the *interrupt number = pin number*.
141140

141+
For Uno WiFi Rev2, Due, Zero, MKR Family and 101 boards the *interrupt number = pin number*.
142142

143143
--
144144
// HOW TO USE SECTION ENDS

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))` (recommended) +
27-
`detachInterrupt(interrupt)` (not recommended) +
28-
`detachInterrupt(pin)` (Not recommended. Additionally, this syntax only works on Arduino SAMD Boards, Uno WiFi Rev2, Due, and 101.)
26+
- `detachInterrupt(digitalPinToInterrupt(pin))` (recommended) +
27+
- `detachInterrupt(interrupt)` (not recommended) +
28+
- `detachInterrupt(pin)` (Not recommended. Additionally, this only works on a specific set of boards.)
2929

3030

3131
[float]

0 commit comments

Comments
 (0)