Umair Aftab
/
Serial_HelloWorld_Mbed
asd
Fork of Serial_HelloWorld_Mbed by
Diff: main.cpp
- Revision:
- 2:4824df3bdaf9
- Parent:
- 0:879aa9d0247b
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);