fixed bug in Pin declaration and usage in Button module