Dependencies:   FatFileSystem TextLCD mbed SDFileSystem

Files at this revision

API Documentation at this revision

Comitter:
esmiwa
Date:
Sun Jun 17 11:41:31 2012 +0000
Commit message:

Changed in this revision

FatFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
SDFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
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/FatFileSystem.lib	Sun Jun 17 11:41:31 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/SomeRandomBloke/code/FatFileSystem/#5baba5d5b728
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SDFileSystem.lib	Sun Jun 17 11:41:31 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/SomeRandomBloke/code/SDFileSystem/#9c5f0c655284
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Sun Jun 17 11:41:31 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/davervw/code/TextLCD/#c5318c74f1a9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jun 17 11:41:31 2012 +0000
@@ -0,0 +1,35 @@
+/* XBee Test_5 */
+/*Mbed_you- 40704B01 ROUTER AT*/
+/*Mbed_me - 406F4E57 COODINATOR AT*/
+
+#include "mbed.h"
+#include "TextLCD.h"
+#include "SDFileSystem.h"
+Serial xbee(p13, p14); 
+TextLCD lcd(p24, p26, p27, p28, p29, p30); // rs, e, d4-d7
+SDFileSystem sd(p5,p6,p7,p8,"sd");
+BusOut led(LED1,LED2,LED3,LED4);
+InterruptIn tact(p22);
+
+int main() {
+    int c1,c2,c3;
+    int counter=0;
+    FILE *fp= fopen("/sd/data.txt", "w");
+    led = 0;
+    lcd.printf("Hello! conter");
+    while (1) {
+        if (xbee.readable()) {
+            led=1;
+            c1=xbee.getc();
+            c2=xbee.getc();
+            c3=xbee.getc();
+            lcd.locate(0,1);lcd.printf("%d%d%d",c1,c2,c3);
+            fprintf(fp, "%d%d%d\n",c1,c2,c3);
+            counter++;
+        }
+        led=0;
+        if(counter>=100)break;
+    }
+    fclose(fp);
+    lcd.printf("end");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Jun 17 11:41:31 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479