Hi,
I try to use: nRF52840 device (Master) + LIS3DH device (Slave) for I2C interface communication.
When the I2C Sensor library of LIS3DH is not applied, the nRF52840 (master) can write or read LIS3DH (slave) registers through the I2C interface.
The problems I encountered include:
When reading the register using i2c_reg_read_byte test results will occur error (-5).
When writing to the register using i2c_reg_write_byte test results will occur error (-5).
Can you help me to confirm which errors in my Radio Test program cause the I2C communication to be invalid?
So far, I2C communication has not been successful.
Do you have any idea what is the right way to do so?

Best regards,
Lulu.C