digitalPinToInterrupt() and arduino 101

Hi,
I can't get digitalPinToInterrupt() to work on my 101

const uint8_t buttonStopLeft = 2;
...
attachInterrupt(digitalPinToInterrupt(buttonStopLeft), contactToggleLeft, CHANGE);
...
'digitalPinToInterrupt' was not declared in this scope

Am I doing something wrong or is it a bug in the IDE? Some other boards had the same problem when they were new.
I can’t find a list of the interrupt numbers for their corresponding interrupt pins. Is there a documentation for this so I can insert the interrupt numbers manually?

Hi,

in the 101 (like in latter boards like Due and Zero) you can use the attachInterrupt(pin, callback, STATE) function (since every pin is interrupt capable).
The macro is missing and should be added to the next 101 core update for compatibility purposes

Thank you! This is so much easier. :slight_smile: