DS18b20 example

Dependencies:   DS1820 mbed-STM32F103C8T6 mbed

Revision:
2:d644c874ea0c
Parent:
0:e069f9f26768
Child:
3:f483abe4bc57
--- a/main.cpp	Mon Feb 16 16:54:07 2015 +0000
+++ b/main.cpp	Thu Feb 26 22:21:13 2015 +0000
@@ -1,5 +1,5 @@
 #define MULTIPLE_PROBES
-#define DATA_PIN        D13
+#define DATA_PIN        A0
 
 
 #ifdef MULTIPLE_PROBES
@@ -22,7 +22,7 @@
     }
     
     printf("Found %d device(s)\r\n\n", num_devices);
-    
+    while(1);
     while(1) {
         probe[0]->convertTemperature(true, DS1820::all_devices);         //Start temperature conversion, wait until ready
         for (int i = 0; i<num_devices; i++)