magnetometer SPI communication working