Add pin.on and pin.off methods to GPIO_pin interface.