The TWI Sensor Example demonstrates how to use the I2C interface by communicating with the accelorometer (MMA7660FC). Data is collected from the accelorometer and sent by UART.
This example assumes that an mbed application shield is used and that the SDA line is connected to PIN30 and the SCL line is connected to PIN7.
You can find the source code and project file of the example in the following folder: <InstallFolder>\examples\peripheral\twi_sensor
Test the TWI Sensor Example application by performing the following steps: