But the compiler told me 'digitalPinToInterrupt' was not declared in this scope. So I looked in the pins_arduino.h file in .arduino15/packages/Intel/hardware/arc32/1.0.4/variants/arduino_101/ and I saw there was no macro or function definition for digitalPinToInterrupt.
Is there already a solution for this problem for the Arduino 101 or should I open an issue on Github?
But the compiler told me `'digitalPinToInterrupt' was not declared in this scope`. So I looked in the pins_arduino.h file in `.arduino15/packages/Intel/hardware/arc32/1.0.4/variants/arduino_101/` and I saw there was no macro or function definition for digitalPinToInterrupt.
Is there already a solution for this problem for the Arduino 101 or should I open an issue on Github?
Thank you,
You can use just the pin number as @edsa suggested (this usually works with all chips where all pins are IRQ enabled).
However, I'll file a pull request to 101 core to add the digitalPinToInterrupt macro to avoid the need to change existing sketches.