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.
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 |
--- 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()){