Seongbin Lim
/
sb_first_project
This is a very simple guide, reviewing the steps required to get Blinky working on an Mbed OS platform.
main.cpp
- Committer:
- sb8718
- Date:
- 2020-06-02
- Revision:
- 141:ba61e3c64a6d
- Parent:
- 140:2252b2df4bc6
- Child:
- 142:cb9e8d32d1b9
File content as of revision 141:ba61e3c64a6d:
#include "mbed.h" Serial pc(USBTX, USBRX, 115200); RawSerial esp(D8, D2, 115200); int main() { char c; while(1) { if(pc.readable()) { c = pc.getc(); esp.putc(c); } if(esp.readable()) { c = esp.getc(); //while pc.putc(c); } } }