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.
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);
}
}