Hello World program, looping back serial data over RN42 bluetooth

Dependencies:   mbed

Revision:
0:c1134839fe1a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 31 12:55:00 2011 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+Serial rn42(p9,p10);
+DigitalOut myled(LED1);
+
+int main() {
+
+    rn42.baud(115200);
+
+    // echo back characters, toggle the LED
+    while (1) {
+        if (rn42.readable()) {
+            rn42.putc(rn42.getc());
+            myled = !myled;
+        }
+    }
+}