This code shows how to configure I2C