Use Uart
Dependencies: mbed
Fork of Serial_HelloWorld_Mbed by
main.cpp
- Committer:
- IOP
- Date:
- 2016-01-07
- Revision:
- 5:4e99dfae8dca
- Parent:
- 4:3974a6c7b088
- Child:
- 6:3689cb2a18f4
File content as of revision 5:4e99dfae8dca:
#include "mbed.h" #if defined(TARGET_WIZwiki_W7500) #define USBTX PC_2 #define USBRX PC_3 #endif Serial pc(USBTX,USBRX); int main() { pc.baud(115200); // set baudrate pc.printf("Hello World!\n"); // string output while(1) { pc.putc(pc.getc()+1); // typing characters } }