Fix bug in pinmode usage The device.PinMode was being set from internal members which had not been stored yet.  Would result in Relay module not working as expected.
Fix bug in pinmode usage
The device.PinMode was being set from internal members which had not been stored yet.  Would result in Relay module not working as expected.

rpedersen/GrovePi,karan259/GrovePi,penoud/GrovePi,rpedersen/GrovePi,penoud/GrovePi,rpedersen/GrovePi,rpedersen/GrovePi,rpedersen/GrovePi,penoud/GrovePi,karan259/GrovePi,penoud/GrovePi,karan259/GrovePi,rpedersen/GrovePi,karan259/GrovePi,karan259/GrovePi,rpedersen/GrovePi,penoud/GrovePi,penoud/GrovePi,penoud/GrovePi,karan259/GrovePi,karan259/GrovePi,rpedersen/GrovePi,penoud/GrovePi,karan259/GrovePi,karan259/GrovePi