SparkFun_LSM9DS1_Arduino_Library icon indicating copy to clipboard operation
SparkFun_LSM9DS1_Arduino_Library copied to clipboard

Fix readTemperature function

Open galch opened this issue 5 years ago • 1 comments

Temperature values are obtained using only 12 bits, as shown on page 49 of the datasheet, reflecting a one degree change per 16 LSB. And this could solve #21.

https://www.st.com/resource/en/datasheet/lsm9ds1.pdf

  • 2.3 Temperature sensor characteristics
  • 7.17 OUT_TEMP_L (15h), OUT_TEMP_H (16h)

galch avatar Sep 18 '20 11:09 galch

@Galch thanks for your fixes, I have merged them into my own fork. I would have just used your fork but I also wanted to integrate PR #35 as well. I will attempt to maintain the repo for others as it appears that Sparkfun isn't updating this any more

CAP1Sup avatar Apr 30 '22 05:04 CAP1Sup