esp and pc

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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