Turn pin definitions into macros

This allows using them in #if. See also
https://github.com/arduino/Arduino/issues/758