aa

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
physicraftls
Date:
Mon Dec 15 01:03:30 2014 +0000
Commit message:
aa

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	Mon Dec 15 01:03:30 2014 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"              
+ 
+Serial pc(USBTX, USBRX);
+//Serial pc(D2,D3);
+DigitalOut d(LED_GREEN);
+ 
+int main() {
+    pc.printf("Echoes back to the screen anything you type\r\n");
+    while(1) {
+        int i = pc.getc();
+        pc.putc(i);//why doesnt work without + or +0
+        //if (i == 'a') d = false;
+        //else if (i == 's') d = true;
+        //pc.putc('\n');
+        pc.printf("\r\n");
+        //pc.printf("aaaaa %d \n",i);
+        //wait(1.0f);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 15 01:03:30 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file