The example shows the usage of the IIC driver as a master using both polling or interruption drivers and an EEPROM 24LC16 as slave device. However any 24LCxx device can be implemented.

The driver example will open the IIC driver and will test the different IOCTL commands that are available on the driver.After testing the IOCTL commands, the example will start different variations of read/write operations to the driver. Then the example implements a couple of functions that performs read/write to the EEPROM. After performing the read/write operations, the example will report the statistics, close the driver and exit MQX.