I'm trying to read data from the LSM303AGR accelerometer using SPI. The microcontroller which I use is nRF52840. I want to use the LIS2DH driver which is implemented in Zephyr.
I added the following device description to the board's device tree:
It corresponds to the connections of the real device.
I have removed magnetometer related part of the code and changed config from SPI to I2C in prj.conf file too.
Unfortunately, measurements fail.
Does anyone have any experience with the presented configuration? Thanks in advance for any suggestions.