ds18b20 work for ST Nucleo

Dependencies:   mbed

Revision:
1:10bbb8a13329
Parent:
0:6cb99f312e0e
--- a/main.cpp	Thu Mar 27 17:22:57 2014 +0000
+++ b/main.cpp	Thu Mar 27 17:26:59 2014 +0000
@@ -9,7 +9,7 @@
 
 int main()
 {
-    int j = 1, i;
+    int i;
     int devices_found=0;
     
     //pc.attach(&pcRx, pc.RxIrq);
@@ -29,7 +29,6 @@
 
 
     while(1) {
-        pc.printf("This program runs since %d seconds.\r\n", j++);
         probe[0].convert_temperature(DS1820::all_devices);
         for (i=0; i<devices_found; i++) {
             pc.printf("Device[%d]: %3.1f \r\n",i, probe[i].temperature('c'));