Lin Team / Mbed 2 deprecated LORA_TX_L476RG

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 DigitalOut M1(PC_8);
00003 DigitalOut M0(PC_9);
00004 Serial pc(USBTX, USBRX);
00005 Serial uart(PC_4, PC_5);//TX4,RX4
00006 int idx=0;
00007 
00008 
00009 int main()
00010 {
00011 
00012 uart.baud(9600);
00013 while(1) {
00014         
00015             
00016             uart.printf("s12345#\r\n");
00017             idx=idx+1;
00018             wait(1);
00019             pc.printf("TX send s12345#\r\n");
00020             //pc.printf("%d\n\r", i);
00021             wait(1);
00022         
00023         
00024     
00025 }
00026 }