hello there i want to interface accelerometer with nrf51822 using i2c. any sample example available for i2c?
hello there i want to interface accelerometer with nrf51822 using i2c. any sample example available for i2c?
You should check the latest SDK (v10) where we added quite a lot regarding i2c interface:
there is a basic example which is using nrf_drv_twi peripheral driver.
There is a new module called app_twi. It is very useful if you plan to have more than one slave on the i2c bus. There is also an example to show how to use the module.
The examples mentioned above are not supposed to be used together with a softdevice. If you have a softdevice already programmed on your board and you try to program these examples also you will in effect try to write the application on top of the softdevice and you will see your error. See this.
The examples mentioned above are not supposed to be used together with a softdevice. If you have a softdevice already programmed on your board and you try to program these examples also you will in effect try to write the application on top of the softdevice and you will see your error. See this.