This example will show you how to use I2C module by running two tasks on i2c bus:
Pin assignment:
Connection:
Test items: