Hi,
I am using nRF_SDK_15.0.0?a53641 and writing a program with keil.
I am trying to read data from the acceleration sensor(LSM303DLHC) by communication with BLENanov2(nRF52832)by TWI and to write the data read into the SD card.
Currently, I was able to communicate twi with sensor using twi_sensor example.
in twi_sensor example,write 1byte to an address
nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance, uint8_t address, uint8_t * p_data, uint8_t length);
while reading data by,
In this acceleration sensor,addresses are dirrerent for X,Yand Z axes, so I am troubled.
There is an argument describing the slave address in nrf_drv twi_rx , but you can not specify such as reading data from a specific address(for example,read from X axis address0x28 or from Y axis address 0x2B)etc, so I would like advice.
thank you.