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.
main.cpp
00001 #include "mbed.h" 00002 00003 Serial RN42(p9, p10); 00004 Serial pc(USBTX, USBRX); 00005 00006 DigitalOut RN42_led(LED1); 00007 DigitalOut pc_led(LED2); 00008 00009 int main() { 00010 00011 RN42.baud(115200); 00012 pc.baud(115200); 00013 00014 while(1) { 00015 if(pc.readable()) { 00016 RN42.putc(pc.getc()); 00017 pc_led = !pc_led; 00018 } 00019 if(RN42.readable()) { 00020 pc.putc(RN42.getc()); 00021 RN42_led = !RN42_led; 00022 } 00023 } 00024 }
Generated on Tue Jul 12 2022 22:22:48 by
