W7500 as a Receiver

Dependencies:   mbed

Committer:
HarshaDRAGNEEL
Date:
Thu Jun 07 04:34:30 2018 +0000
Revision:
0:9d2e7220cfeb
W7500 Receiver for communication between W750SR and W7500

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HarshaDRAGNEEL 0:9d2e7220cfeb 1 #include "mbed.h"
HarshaDRAGNEEL 0:9d2e7220cfeb 2
HarshaDRAGNEEL 0:9d2e7220cfeb 3 DigitalOut myled(LED1);
HarshaDRAGNEEL 0:9d2e7220cfeb 4
HarshaDRAGNEEL 0:9d2e7220cfeb 5
HarshaDRAGNEEL 0:9d2e7220cfeb 6 Serial pc(USBTX, USBRX);
HarshaDRAGNEEL 0:9d2e7220cfeb 7 //void baud(int baudrate)
HarshaDRAGNEEL 0:9d2e7220cfeb 8 //{
HarshaDRAGNEEL 0:9d2e7220cfeb 9 Serial a(D1,D0);
HarshaDRAGNEEL 0:9d2e7220cfeb 10 // a.baud(baudrate);
HarshaDRAGNEEL 0:9d2e7220cfeb 11 //}
HarshaDRAGNEEL 0:9d2e7220cfeb 12
HarshaDRAGNEEL 0:9d2e7220cfeb 13 int main() {
HarshaDRAGNEEL 0:9d2e7220cfeb 14 char c;
HarshaDRAGNEEL 0:9d2e7220cfeb 15 // baud(9600);
HarshaDRAGNEEL 0:9d2e7220cfeb 16 while(1)
HarshaDRAGNEEL 0:9d2e7220cfeb 17 {
HarshaDRAGNEEL 0:9d2e7220cfeb 18
HarshaDRAGNEEL 0:9d2e7220cfeb 19 c = a.getc();
HarshaDRAGNEEL 0:9d2e7220cfeb 20 //pc.printf("%c",c);
HarshaDRAGNEEL 0:9d2e7220cfeb 21 //c = pc.getc();
HarshaDRAGNEEL 0:9d2e7220cfeb 22 pc.printf("%d",c);
HarshaDRAGNEEL 0:9d2e7220cfeb 23 //pc.printf("hello\n");
HarshaDRAGNEEL 0:9d2e7220cfeb 24 }
HarshaDRAGNEEL 0:9d2e7220cfeb 25 }