-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DHT11 sampling fix (tested on ESP8266 and Mega2560 r3) (#22)
* Fixing issue #2 (timing problems Mega2560 r3 + DHT11). Added method for more precise time measurement of the level states. Simplified interface dropping 'pin' from most methods (keeping overloaded methods for interface compatibility). * Adding constructors without parameters (for backward interface compatibility), #2 * Cleaning-up old and debug code, corrected comments, #2 * Default value defined already in .h, #2 * Correcting timing in DHT11:sample(), error threshold value lowered to work properly on ESP2866, #3 * Simplifying the code of the time measurement methods (#2, #3). * Preventing potential inf. loop in levelTime() and levelTimePrecise(), #5 Adjusting pin level times for DHT11, needed after the fix above (-> need to adjust times after any change in the time measurement code...), #3 * Adjusting timing for mega2560_r3 after changes for #5 (also: cont. #2). * Correcing comments / api doc. (#2, #3).
- Loading branch information
Showing
2 changed files
with
212 additions
and
59 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
Oops, something went wrong.