W7500 as a Receiver

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
HarshaDRAGNEEL
Date:
Thu Jun 07 04:34:30 2018 +0000
Commit message:
W7500 Receiver for communication between W750SR and W7500

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jun 07 04:34:30 2018 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+ 
+DigitalOut myled(LED1);
+
+
+Serial pc(USBTX, USBRX);
+//void baud(int baudrate)
+//{ 
+   Serial a(D1,D0);
+  // a.baud(baudrate);
+//}
+
+int main() {
+    char c;
+  //  baud(9600);
+while(1)
+{
+   
+   c = a.getc();
+   //pc.printf("%c",c);  
+   //c = pc.getc(); 
+   pc.printf("%d",c); 
+   //pc.printf("hello\n");   
+}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jun 07 04:34:30 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file