add getNewPin() function into GPIOService
small changes into Pin constructors