-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bh1750: configurable accuracy and sensitivity (mtreg)
amend b8921b9 * customize our multipliers. accuracy is a generic multiplier, mostly depends on the environment temperature (see datasheet). sensitivity is a ratio between the currently set mtreg value and the default e.g. for mtreg 31, sensitivity is .45; for mtreg 69, sensitivity is 1. * non-blocking pre(); since we have tick(), just wait until the reading is available instead of stopping everything else in the sensor loop * more specific error state when we are not ready to return a value
- Loading branch information
Showing
3 changed files
with
221 additions
and
54 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
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
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