Changed efines for global variables to declare pins

You cant change a preprocessor directive in runtime... better use global
variables for pins asignment