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:
- 142:cb9e8d32d1b9
- Parent:
- 141:ba61e3c64a6d
File content as of revision 142:cb9e8d32d1b9:
#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); } } // new commit! }