Dependencies:   mbed

Fork of Temperature_Reading1 by jack kemnitz

Files at this revision

API Documentation at this revision

Comitter:
iwolf32
Date:
Tue Sep 05 19:30:20 2017 +0000
Parent:
1:1de97b1145f3
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Aug 16 13:51:57 2017 +0000
+++ b/main.cpp	Tue Sep 05 19:30:20 2017 +0000
@@ -45,7 +45,7 @@
 }
 
 int main() {
-    pc.baud(250000);
+    pc.baud(115200);
 
     // reserve 4 bytes for transfer
     char cmd[4];
@@ -60,7 +60,7 @@
     float values[2] = {0};
 
     while (1) {
-        wait(0.5);
+        wait(0.01);
 
         // clear buffer, only to detect invalid data
         cmd[0] = 0x00;
@@ -83,12 +83,7 @@
         }
 
         // output temperature data
-        
         printf("%0.2f\t %0.2f\r\n", values[0], values[1]);
+
     }
 }
-
-
-
-
-