not getting accelerator axis values
Hi.
We have a board based on nordik nrf52840 chip with lis3dh accelerator sensor connected.
i took the driver code for lis3dh from STM github and wrote the context functions using nordic sdk 15.2 (I2C bus).
First of all i must say that the ADDRESS in the code is no correct, my device response to 0x18 address and not 0x31. Second i'm able to read registers (like who am i register, status registers etc...) and to write to them, also i was able to get the orientation 6D sensor output. what i was unable to do is get a proper reading for x,y,z. the raw reading always returns the same.
i tried changing the scale from 2_g to 4_g and still different value but remains the same between readings. of course i'm shifting and tilting, rotating the board to check it, nothing.
When i compared the STM example code (read_data_simple) to Adafruit's i did see that adafruit turn register1 lower 3 bits which are "axis enable bits" did that too, still nothing.
Anyone has the example code running properly and returning values ?
Am i missing something to get acceleration axis reading ?
