Peng Jing Xuan
/
LORA_TX_L476RG
s
Revision 0:dfef48dc4281, committed 2020-08-06
- Comitter:
- peng103617
- Date:
- Thu Aug 06 06:42:37 2020 +0000
- Commit message:
- d
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r dfef48dc4281 main.cpp --- /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
diff -r 000000000000 -r dfef48dc4281 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Aug 06 06:42:37 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file