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 #include "main.h" 00003 00004 Serial xbee1(PTC4, PTC3); 00005 Serial pc(USBTX, USBRX); 00006 DigitalOut rst1(PTC5); 00007 00008 DigitalOut myled(LED1); 00009 DigitalOut myled2(LED2); 00010 DigitalOut myled3(LED3); 00011 00012 int main() { 00013 rst1 = 0; //Set reset pin to 0 00014 myled = 0; 00015 myled2= 0; 00016 wait_ms(1); 00017 rst1 = 1; //Set reset pin to 1 00018 wait_ms(1); 00019 00020 while (1) { 00021 00022 pc.getc(); //function to write data to send -- change for TAG ID'r 00023 00024 xbee1.putc(pc.getc()); //XBee write 00025 myled3 = 0; 00026 myled2=1; 00027 myled=1; 00028 } 00029 } 00030 00031
Generated on Wed Sep 7 2022 06:10:06 by
1.7.2