Xbee receiver Module

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
anoop1728
Date:
Mon Feb 28 19:57:50 2011 +0000
Commit message:

Changed in this revision

TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 3d9570678c6d TextLCD.lib
--- /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
diff -r 000000000000 -r 3d9570678c6d main.cpp
--- /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);
+             
+           }
+         }
+     }
+
+
diff -r 000000000000 -r 3d9570678c6d mbed.bld
--- /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