asd

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by mbed official

Files at this revision

API Documentation at this revision

Comitter:
umairaftab
Date:
Wed Dec 03 20:07:29 2014 +0000
Parent:
1:49e4c8235e7f
Commit message:
working

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 49e4c8235e7f -r 4824df3bdaf9 main.cpp
--- a/main.cpp	Wed Apr 09 23:50:40 2014 +0000
+++ b/main.cpp	Wed Dec 03 20:07:29 2014 +0000
@@ -1,8 +1,10 @@
 #include "mbed.h"
  
-Serial pc(USBTX, USBRX); // tx, rx
+Serial pc(PTA2, PTA1); // tx, rx
  
 int main() {
+    pc.baud(115200);
+
     pc.printf("Hello World!\n");
     while(1) {
         pc.putc(pc.getc() + 1);