Use Uart
Dependencies: mbed
Fork of Serial_HelloWorld_Mbed by
main.cpp
- Committer:
- IOP
- Date:
- 2015-08-04
- Revision:
- 4:3974a6c7b088
- Parent:
- 3:1f30ebd64626
- Child:
- 5:4e99dfae8dca
File content as of revision 4:3974a6c7b088:
#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(9600); // set baudrate pc.printf("Hello World!\n"); // string output while(1) { pc.putc(pc.getc()); // typing characters } }