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.
thanks it works. but now i am getting error like Error: Flash Download failed - "Cortex-M0". may be it is because of softdevice. can you tell me which soft device should i use?
thanks it works. but now i am getting error like Error: Flash Download failed - "Cortex-M0". may be it is because of softdevice. can you tell me which soft device should i use?