forked from xoseperez/espurna
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref. xoseperez#2543 search the bus preemptively and create sensor instances based on that more clean-up for error handling, allow specific device to fail independently most of the sensor was re-written - general one-wire operations are part of the system driver now - split class definitions for digital and temperature sensors - system timer instead of polling, enforce ordering by forcing specific instance to handle conversion request, while notifying every other ones - synchronize readings and conversion requests with the sensor reading interval, instead of relying on internal polling. now, it happens right after begin() and pre() instead of previosly (almost) random tick() calls - auto-detect conversion time based on device resolution / resolution setting initialization also adds runtime settings (read on boot) - `dallasPin` to set current one-wire pin - `dallasParasite` to change from non-powered mode (default is still on) - `dallasResolution` to force sensor to be operated using 9...12bit res (0 to keep default one)
- Loading branch information
Showing
5 changed files
with
714 additions
and
444 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
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
Oops, something went wrong.