Compatibility: digitalPinToPort and digitalPinToBitMask

If you are not willing to sign the contributor license agreement then it should always be a miss because the Arduino company has a strict policy that this is required for all code contributions to official Arduino software projects.