Changed I2C io to be synchronous.