Mbed / Mbed 2 deprecated BusIn_HelloWorld

Dependencies:   mbed

Fork of BusIn_HelloWorld by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Feb 11 17:14:12 2013 +0000
Commit message:
BusIn Hello World

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 5e474ece410b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 11 17:14:12 2013 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+BusIn nibble(p5, p6, p18, p11);
+
+int main() {
+    while(1) {
+        switch(nibble) {
+            case 0x3: printf("Hello!\n"); break; // p5 and p6 are 1
+            case 0x8: printf("World!\n"); break; // p11 is 1
+        }
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 5e474ece410b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Feb 11 17:14:12 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/0954ebd79f59
\ No newline at end of file