Hi,
Thanks for your inquiry.
Please verify if you have two 10K Ohms pull-up resistors on I2C bus SDA and SCL lines. Also please check if you are able to read chip_ID back with the value of 0x50 or not. If yes, then your I2C read function works. Then you can write value to register 0x1D to change ODR for example and read register 0x1D back to see if you have successfully written the value to the register. If yes, then your I2C write function works.
Thanks.
... View more