Fixed I2C IO function.