s

Dependencies:   mbed

main.cpp

Committer:
peng103617
Date:
2020-08-06
Revision:
0:dfef48dc4281

File content as of revision 0:dfef48dc4281:

#include "mbed.h"
DigitalOut M1(PC_8);
DigitalOut M0(PC_9);
Serial pc(USBTX, USBRX);
Serial uart(PC_4, PC_5);//TX4,RX4
int idx=0;


int main()
{

uart.baud(9600);
while(1) {
        
            
            uart.printf("s12345#\r\n");
            idx=idx+1;
            wait(1);
            pc.printf("TX send s12345#\r\n");
            //pc.printf("%d\n\r", i);
            wait(1);
        
        
    
}
}