Anoop M
/
xberx
Xbee receiver Module
Revision 0:3d9570678c6d, committed 2011-02-28
- Comitter:
- anoop1728
- Date:
- Mon Feb 28 19:57:50 2011 +0000
- Commit message:
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Mon Feb 28 19:57:50 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 28 19:57:50 2011 +0000 @@ -0,0 +1,34 @@ + #include "mbed.h" + #include "TextLCD.h" + + Serial xbee1(p9, p10); + DigitalOut rst1(p8); + + DigitalOut myled(LED1); + TextLCD lcd(p15, p16, p17, p18, p19, p20); + + int main() { + + rst1 = 0; //Set reset pin to 0 + myled = 0; + wait_ms(1); + rst1 = 1; //Set reset pin to 1 + wait_ms(1); + int X; + + while (1) { + if(xbee1.readable()){ + wait(1); + myled = 1; + + xbee1.scanf("%d", &X); + // X = xbee1.getc(); + wait(1); + myled = 0; + lcd.printf("data received %f \n\r ", (X)/10.0); + + } + } + } + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Feb 28 19:57:50 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912