Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix readTemperature function #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

galch
Copy link

@galch galch commented Sep 18, 2020

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)

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

https://www.st.com/resource/en/datasheet/lsm9ds1.pdf
- 2.3 Temperature sensor characteristics
- 7.17 OUT_TEMP_L (15h), OUT_TEMP_H (16h)
CAP1Sup added a commit to CAP1Sup/Arduino_LSM9DS1 that referenced this pull request Apr 30, 2022
Fixes issue mentioned here:
sparkfun#31
@CAP1Sup
Copy link

CAP1Sup commented Apr 30, 2022

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants