Matyas Kinde / Mbed 2 deprecated Xbeeget

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
mottiex
Date:
Thu May 02 13:25:35 2013 +0000
Commit message:
xbee gettin! rfid

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Thu May 02 13:25:35 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#e4cb7ddee0d3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu May 02 13:25:35 2013 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p15,p16,p17,p18,p19,p20);
+DigitalOut myled(LED1);
+Serial xbee1(p9, p10);
+
+int main() {
+    int data;
+   // int prev;
+    while(1)
+    {
+    myled = 1;
+    if (xbee1.readable())
+    {
+    xbee1.scanf(" %d", &data);
+    myled = 0;
+   // prev = data;
+    wait(0.01);
+    lcd.printf(" Pin: %d", data);
+    wait(20);
+    }
+    lcd.cls();
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu May 02 13:25:35 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e6c9f46b3bd
\ No newline at end of file