Use Uart

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by eunkyoung kim

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 Serial pc(PC_02,PC_03);             
00004 
00005 int main(){
00006     
00007     pc.baud(115200);
00008     
00009     pc.printf("Hello World!\n");
00010     
00011     while(1)
00012     {        
00013         pc.putc(pc.getc()+1);
00014     }
00015 }