Are there any I2C examples for the nRF51822 ( write/ read functions) ? If not, can anyone suggest a good starting point for I2C? I am using Eclipse kepler for development. Thank you for all suggests.
Are there any I2C examples for the nRF51822 ( write/ read functions) ? If not, can anyone suggest a good starting point for I2C? I am using Eclipse kepler for development. Thank you for all suggests.
I wrote my own little wrapper that might help, see attached i2c.c.
@clovett ,
i was seeing your wrapper you used twi_master_transfer both for reading and writing i2c data.
dont we need to use nrf_drv_twi_tx and nrf_drv_twi_rx as well ?
And what will be the twi initialization in this case ? tnx
@clovett ,
i was seeing your wrapper you used twi_master_transfer both for reading and writing i2c data.
dont we need to use nrf_drv_twi_tx and nrf_drv_twi_rx as well ?
And what will be the twi initialization in this case ? tnx