2025-03-12 11:14 AM
It seems that its CS is inactive, the LIS will assume that it should be in I2C mode.
But if I have multiple devices on the SPI bus, then I want to be able to disable I2C mode altogether.
Our board has exactly this setup and it seems that whenever I enable the LIS2DH, it corrupts SPI comms for the other device, presumably due to it entering I2C mode as soon as I de-assert the LIS CS-pin.
I'm unable to find a register that controls this. So my question is: How do I use the LIS2DH on a SPI bus with other devices?