Porting Arduino Uno to Photon - GPIO question

I’m porting an app from Arduino Uno to Photon that references a handful of ports by GPIO number.
I’m using GPIO 2 - D2 and GPIO 3 - D3. Do they map the same way on Photon? Is D2 still interrupt 0 and D3 interrupt 1?

No, the Photon is more like the bigger Arduinos like the Teensy, all pins have their own interrupts. D0 is interrupt 0, D1 is interrupt 1, etc.

See this:


1 Like