eunkyoung kim
/
Serial_HelloWorld_Mbed
add TARGER define
Fork of Serial_HelloWorld_Mbed by
main.cpp
- Committer:
- eunkyoungkim
- Date:
- 2015-06-29
- Revision:
- 2:ab03b0b5012c
- Parent:
- 1:5f5162adee9f
File content as of revision 2:ab03b0b5012c:
#include "mbed.h" #if defined(TARGET_WIZwiki_W7500) #define USBTX PC_2 #define USBRX PC_3 #endif Serial pc(USBTX, USBRX); // tx, rx int main() { pc.printf("Hello World!\n"); while(1) { pc.putc(pc.getc() + 1); } }