lab4

Dependencies:   TimeManagement mbed

Files at this revision

API Documentation at this revision

Comitter:
bdove16
Date:
Thu Jan 29 14:40:30 2015 +0000
Commit message:
lab4

Changed in this revision

TimeManagement.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
diff -r 000000000000 -r 3cd151f6b9fa TimeManagement.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TimeManagement.lib	Thu Jan 29 14:40:30 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/WiredHome/code/TimeManagement/#a517fee06e2e
diff -r 000000000000 -r 3cd151f6b9fa main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jan 29 14:40:30 2015 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "time.h"
+Serial pc(USBTX,USBRX);
+AnalogIn ted(p17);
+float volt;
+
+Timer t;
+int main()
+{
+    pc.baud(9600);
+    pc.format(7,SerialBase::None,1);
+t.reset();
+t.start();
+    while(1) {
+        volt = 7.6*ted.read();
+     
+        pc.printf("analog=%f, volt=%f, timer=%f\n", ted.read(), volt, t.read());
+
+    }
+}
+
diff -r 000000000000 -r 3cd151f6b9fa mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jan 29 14:40:30 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file