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?
I didn't use it but I saw it in SDK 9.0, hope it is what you are looking for
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.
There are also some suggestions and code in this thread and also a bunch of other Q&As about the MPU6050 already posted on devzone.
can you tell me soft device for this example? because this is not working for soft device s110
code compliled . but when i am trying to upload on kit. it shows me error no ulink device found