ds18b20 work for ST Nucleo

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
TuanPM
Date:
Thu Mar 27 17:26:59 2014 +0000
Parent:
0:6cb99f312e0e
Commit message:
First release

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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'));