Replaced pin macros by constants