Harriet Noons
/
wifisend
wifisend code
Revision 0:43a44591e916, committed 2013-05-02
- Comitter:
- hnoons
- Date:
- Thu May 02 10:22:44 2013 +0000
- Commit message:
- wifi send before tag
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 02 10:22:44 2013 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" +#include "main.h" + +Serial xbee1(PTC4, PTC3); +Serial pc(USBTX, USBRX); +DigitalOut rst1(PTC5); + +DigitalOut myled(LED1); +DigitalOut myled2(LED2); +DigitalOut myled3(LED3); + +int main() { + rst1 = 0; //Set reset pin to 0 + myled = 0; + myled2= 0; + wait_ms(1); + rst1 = 1; //Set reset pin to 1 + wait_ms(1); + + while (1) { + + pc.getc(); //function to write data to send -- change for TAG ID'r + + xbee1.putc(pc.getc()); //XBee write + myled3 = 0; + myled2=1; + myled=1; + } + } + + \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Thu May 02 10:22:44 2013 +0000 @@ -0,0 +1,5 @@ + + +#include "mbed.h" + +int getKeyNum(); \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu May 02 10:22:44 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7e6c9f46b3bd \ No newline at end of file