Update for proper calculation of battery voltage and setting the I2C speed properly.