task 4.4p

Dependencies:   TMP102 mbed

Files at this revision

API Documentation at this revision

Comitter:
stopkickingtherobots
Date:
Sun Apr 29 21:04:22 2018 +0000
Commit message:
first

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	Sun Apr 29 21:04:22 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/TMP102/#7585766ad401
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Apr 29 21:04:22 2018 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "TMP102.h"
+
+Serial pc(USBTX, USBRX);
+
+TMP102 temperature(p9, p10, 0x90); //A0 pin is connected to ground
+
+int main()
+{
+    pc.printf("Begin.\n");
+
+    while(1) {
+        // pc.printf("Hello World!\n");
+        pc.printf("Temperature: %f\n", temperature.read());
+        wait(5.0);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Apr 29 21:04:22 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da
\ No newline at end of file