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.
Fork of DS1820 by
Revision 2:4c7277e9f267, committed 2017-08-18
- Comitter:
- DasSidG
- Date:
- Fri Aug 18 08:48:40 2017 +0000
- Parent:
- 1:91aa74f0cb0e
- Commit message:
- Commented out wait in the read-temperature function for the benefit of the temperature measurement board (to speed up temperature meaurement).
Changed in this revision
| DS1820.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DS1820.cpp Sun Jul 02 15:10:13 2017 +0000
+++ b/DS1820.cpp Fri Aug 18 08:48:40 2017 +0000
@@ -268,9 +268,10 @@
onewire_byte_out( 0x44); // perform temperature conversion
if (_parasite_power)
_parasitepin = 0; // Parasite power strong pullup
- wait_ms(delay_time);
+ /*wait_ms(delay_time);
if (_parasite_power)
_parasitepin = 1;
+ */ //TODO: UNCOMMENT THIS TO RESTORE NORMAL LIBRARY FUNCTIONALITY. This has been commented out so that the delay happens in the loop for all temperature buses at once, rather than one at a time
}
void DS1820::read_RAM() {
