pour donner à etudiants

Dependencies:   TMP102 mbed

Fork of TMP102HelloWorld by Chris Styles

Revision:
1:9b49379e8bf6
Parent:
0:89f745be63a8
Child:
2:448ad66d65dc
--- a/main.cpp	Thu Apr 19 10:17:56 2012 +0000
+++ b/main.cpp	Sat Jul 21 22:41:38 2012 +0000
@@ -1,11 +1,12 @@
 #include "mbed.h"
-
 #include "TMP102.h"
 
 TMP102 temperature(p9, p10, 0x90); //A0 pin is connected to ground
 
 int main()
 {
-  printf("Temperature: %f\n", temperature.read());
-  return 0;
+  while(1) {
+    printf("Temperature: %f\n", temperature.read());
+    wait(1.0);
+  }
 }