Added code to set the I2C registers to the correct values for using the external power supply