Kohei Yamamoto
/
esptopc
esp and pc
Diff: main.cpp
- Revision:
- 1:1a5cc6ebc608
- Parent:
- 0:7634421e8e46
diff -r 7634421e8e46 -r 1a5cc6ebc608 main.cpp --- a/main.cpp Fri Dec 03 06:21:38 2021 +0000 +++ b/main.cpp Tue Dec 07 09:24:37 2021 +0000 @@ -1,11 +1,12 @@ #include "mbed.h" -Serial pc(D1, D0); // tx,rx -Serial esp(A7, A2); +Serial pc(USBTX, USBRX); // tx,rx +Serial esp(D1, D0); int main() { + pc.baud(19200); pc.printf("\nConnected to PC\n"); while(1) { if (esp.readable()){