Kohei Yamamoto
/
esptopc
esp and pc
Revision 1:1a5cc6ebc608, committed 2021-12-07
- Comitter:
- asha_ndf
- Date:
- Tue Dec 07 09:24:37 2021 +0000
- Parent:
- 0:7634421e8e46
- Commit message:
- 20211207;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
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()){