moved pin and other constants to main.h