Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: DHT11.cpp
- Revision:
- 11:e91c151d1798
- Parent:
- 10:f0d789f49df7
- Child:
- 12:4950d9936ba4
--- a/DHT11.cpp Tue Sep 16 13:06:43 2014 +0000 +++ b/DHT11.cpp Thu Sep 25 14:13:10 2014 +0000 @@ -55,10 +55,13 @@ // Sending start signal, low signal for around 10 ms t.reset(); + io.output(); + io = 0; do { - io = 0; } while (t.read_ms() < 20 + t_tol_start); + io.input(); io = 1; + // Waiting for the start of the response signal t.reset();