Comunication mbed_pc
Revision 1:6e98e62c69d4, committed 2014-07-28
- Comitter:
- nunesdiego383
- Date:
- Mon Jul 28 16:23:08 2014 +0000
- Parent:
- 0:cafb6c58ebf7
- Commit message:
- comunication mbed_pc
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jul 28 15:50:53 2014 +0000
+++ b/main.cpp Mon Jul 28 16:23:08 2014 +0000
@@ -1,10 +1,7 @@
#include "mbed.h"
-Serial pc(USBTX, USBRX);
+Serial pc(USBTX, USBRX); // tx, rx
int main() {
- pc.printf("Echoes back to the screen anything you type\n");
- while(1) {
- pc.putc(pc.getc());
- }
+ pc.printf("Hello World!\n");
}
\ No newline at end of file