Replaced WiringPi library dependancy with PiGPIO library