Ensure that correct wiringPi functions are invoked from inside the WiringPiHal class.
Fix pin number for Mbed2Pi and vice versa.