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

seesaw.py - incorrect reading below 0C #131

Open
sciencedude1990 opened this issue Feb 5, 2024 · 0 comments
Open

seesaw.py - incorrect reading below 0C #131

sciencedude1990 opened this issue Feb 5, 2024 · 0 comments

Comments

@sciencedude1990
Copy link

Hi there,

I think the routine get_temp() in seesaw.py does not operate correctly below 0C.

Not sure you need the & 0x3F - I think you want to take the ret, check if it is above (1 << 31), and if so, subtract off 1<<32, then perhaps apply the scaling factor...

I think the Adafruit_seesaw.cpp might have the same issue.

Thanks!

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

No branches or pull requests

1 participant