Closed mfreema5 closed 4 years ago
Thanks, very useful!
Added in the doc ;-)
So, it seems I wasn't reading the information on github.com/arduino/ArduinoCore-samd/blob/master/variants/nano_33_iot/variant.cpp quite right. Turns out you need to look at the column labeled Peri.A EIC (EXTINT)
; entries with an asterisk (*
) are available as interrupts.
Corrected table:
Board PIN | Internal PIN |
---|---|
A1 | 15 |
A5 | 19 |
A7 | 21 |
D2 | 2 |
D3 | 3 |
D9 | 9 |
D10 | 10 |
D11 | 11 |
I've tested all these and they do act as interrupts. (At least they do in a simple sketch that does nothing but detect interrupts.)
Thanks for the update ;-)
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.A216EXTERNAL_INT_0A317EXTERNAL_INT_1A620EXTERNAL_INT_4A721EXTERNAL_INT_5That 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.