digitalPinToInterrupt(pin); // converts a pin id to an interrupt id, for use with attachInterrupt() and detachInterrupt().
attachInterrupt(digitalPinToInterrupt(pin), ISR, mode); // recommended
attachInterrupt(interrupt, ISR, mode); // not recommended
detachInterrupt(digitalPinToI...