pour donner à etudiants

Dependencies:   TMP102 mbed

Fork of TMP102HelloWorld by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Thu Apr 19 10:17:56 2012 +0000
Child:
1:9b49379e8bf6
Commit message:

Changed in this revision

TMP102.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TMP102.lib	Thu Apr 19 10:17:56 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/TMP102/#374d9678d5ad
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 19 10:17:56 2012 +0000
@@ -0,0 +1,11 @@
+#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;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 19 10:17:56 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da