Skip to content

Perform burst reads for pressure, temperature and humidity #10

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

Merged
merged 1 commit into from
Mar 23, 2018

Conversation

xoseperez
Copy link
Contributor

When sampling at 100Hz I noticed spurious reads in the pressure reading. After some testing with different combinations a friend pointed me to a post about reading/writing collisions in a different library due to reading data byte by byte.
I tried changing the I2C readings so they read in burst all the bytes of a given measure and it worked a treat. The change is really simple since the library already has a method to do burst readings.

@nseidle
Copy link
Member

nseidle commented Mar 23, 2018

This is lovely. Thank you!

@nseidle nseidle merged commit 7875e5c into sparkfun:master Mar 23, 2018
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.

3 participants