How to read from magnetic sensor?
I use LSM303DLHC. I set the data reading speed for the accelerometer 50 Hz, and for the magnetometer 30 Hz.For the accelerometer, I check in the STATUS_REG_A register (p.28 LSM303DLHC datasheet) the state of the 3rd bit and at the time = 1 I read the...