serial communication. send.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
nobuki
Date:
Sun Jun 17 03:36:42 2012 +0000
Commit message:
Version 1

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jun 17 03:36:42 2012 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+Serial g_serial(USBTX, USBRX);
+
+int main() {
+    g_serial.baud(9600);
+    
+    int iCounter = 0;
+    while(1) {
+        g_serial.printf( "%d\n", iCounter );
+        iCounter++;
+        wait(1.0);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Jun 17 03:36:42 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479