Skip to content

Available external interrupts #1

@mfreema5

Description

@mfreema5

I had difficulty tracking down information on which pins can be used with attachInterrupt(), so I thought I'd share what I found. Hopefully it's useful to someone.

Board PIN Internal PIN Interrupt
A2 16 EXTERNAL_INT_0
A3 17 EXTERNAL_INT_1
A6 20 EXTERNAL_INT_4
A7 21 EXTERNAL_INT_5
D2 2 EXTERNAL_INT_2
D3 3 EXTERNAL_INT_3
D9 9 EXTERNAL_INT_9
D10 10 EXTERNAL_INT_10
D11 11 EXTERNAL_INT_11

That information was extracted from github.com/arduino/ArduinoCore-samd/blob/master/variants/nano_33_iot/variant.cpp. Use at your own risk, etc.

Edit: Trials show the analog pins don't seem to work as interrupts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions