Use Uart
Dependencies: mbed
Fork of Serial_HelloWorld_Mbed by
main.cpp
- Committer:
- IOP
- Date:
- 2017-04-20
- Revision:
- 6:3689cb2a18f4
- Parent:
- 5:4e99dfae8dca
File content as of revision 6:3689cb2a18f4:
#include "mbed.h"
Serial pc(PC_02,PC_03);
int main(){
pc.baud(115200);
pc.printf("Hello World!\n");
while(1)
{
pc.putc(pc.getc()+1);
}
}
IOP
