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 "main.h" 00002 00003 Serial xbee1(p9, p10); 00004 DigitalOut rst1(p11); 00005 00006 DigitalOut myled(LED1); 00007 DigitalOut myled2(LED2); 00008 00009 int main() { 00010 rst1 = 0; //Set reset pin to 0 00011 myled = 0; 00012 myled2= 0; 00013 wait_ms(1); 00014 rst1 = 1; //Set reset pin to 1 00015 wait_ms(1); 00016 00017 while (1) { 00018 int a = getKeyNum(); 00019 00020 if(a!=-1){ 00021 myled2 = 1; 00022 xbee1.putc(a); //XBee write 00023 myled2 = 0; 00024 } 00025 } 00026 }
Generated on Fri Jul 15 2022 00:10:07 by
1.7.2