Peng Jing Xuan
/
LORA_TX_L476RG
s
Diff: main.cpp
- Revision:
- 0:dfef48dc4281
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Aug 06 06:42:37 2020 +0000 @@ -0,0 +1,26 @@ +#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); + + + +} +} \ No newline at end of file