Harriet Noons / Mbed 2 deprecated wifireceive

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
hnoons
Date:
Thu May 02 10:23:05 2013 +0000
Commit message:
wifi receieve before pin

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 644275e48645 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Thu May 02 10:23:05 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r 644275e48645 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu May 02 10:23:05 2013 +0000
@@ -0,0 +1,31 @@
+#include "mbed.h"
+#include "TextLCD.h"
+ 
+Serial xbee1(p9, p10);
+DigitalOut rst1(p11);
+ 
+DigitalOut myled(LED1);
+DigitalOut myled2(LED2);
+ 
+TextLCD lcd(p15, p16, p17, p18, p19, p20);
+
+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);
+ 
+    lcd.printf("starting\n");
+    wait(2);
+    lcd.cls();
+    
+     while (1) {
+ 
+        if(xbee1.readable()){
+         char  a = xbee1.getc();
+           lcd.printf("%d", a);
+                            }
+                }
+     }
\ No newline at end of file
diff -r 000000000000 -r 644275e48645 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu May 02 10:23:05 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e6c9f46b3bd
\ No newline at end of file