Demo 2 for EE2M02A/CSM213A Fall 2010

Files at this revision

API Documentation at this revision

Comitter:
zainulcharbiwala
Date:
Fri Oct 22 19:54:48 2010 +0000
Commit message:

Changed in this revision

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 073b4fccc3c9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 22 19:54:48 2010 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+Serial pc(USBTX, USBRX); // tx, rx
+
+
+
+int main() {
+    int i=0;
+    while(1) {
+        myled = 1;
+        wait(0.5);
+
+        pc.printf("Hello World - %d !\r\n", i++);
+
+        myled = 0;
+        wait(0.5);
+    }
+}
diff -r 000000000000 -r 073b4fccc3c9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Oct 22 19:54:48 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e