Now supports DS18B20 and DS18S20 Maxim/Dallas one-wire thermometer devices. Also supports DS18S20 in 9, 10, 11, and 12 bit resolution modes. 'Use Address' mode now checks if the correct device type is present, and informs the user which device to use. Correct temperature conversion times now used in non-parasitic mode. The device should be placed at least 6 inches (15 cm) from the mbed board in order to accurately read ambient temperature.

Dependencies:   mbed

Fork of OneWireCRC by Petras Saduikis

Revision:
1:a6643ebd84ec
Parent:
0:01a6a40578c9
--- a/main.cpp	Sun Jan 03 11:57:31 2010 +0000
+++ b/main.cpp	Thu Oct 15 23:46:29 2015 +0000
@@ -35,7 +35,7 @@
 int main()
 {
     // device( crcOn, useAddress, parasitic, mbed pin )
-    THERMOMETER device(true, true, false, p25);
+    THERMOMETER device(true, true, false, D10);
     
     while (!device.initialize());    // keep calling until it works