Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:7634421e8e46
- Child:
- 1:1a5cc6ebc608
diff -r 000000000000 -r 7634421e8e46 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Dec 03 06:21:38 2021 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" + + +Serial pc(D1, D0); // tx,rx +Serial esp(A7, A2); + +int main() +{ + pc.printf("\nConnected to PC\n"); + while(1) { + if (esp.readable()){ + pc.printf("%c",esp.getc()); + } + if (pc.readable()){ + esp.printf("c",pc.getc()); + } + } +}