Use digitalPinToInterrupt on newer versions of Arduino