-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix temperature readings and speed things up.
* The default internal attribute values for oversampling were incorrect because they needed to be the register values, not the human friendly ones. * Reduce the delay after reset. * Reduce the read delay by polling the new data bit. * Introduce refresh_rate setting which allows for returning cached values when the properties are accessed quickly. * I2C writes do not auto-increment so reset the register address for every value. Fixes #5
- Loading branch information
Showing
1 changed file
with
44 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters