cauqleuir madre

Dependencies:   SDFileSystem mbed TFTLCD

Files at this revision

API Documentation at this revision

Comitter:
Danton
Date:
Fri Feb 01 18:38:22 2013 +0000
Child:
1:d6f6ac480cf1
Commit message:
sd;

Changed in this revision

SDFileSystem.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/SDFileSystem.lib	Fri Feb 01 18:38:22 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/SDFileSystem/#c8f66dc765d4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Feb 01 18:38:22 2013 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "SDFileSystem.h"
+ 
+
+ 
+int main() {
+    printf("Hello Stinky World!\c\n");   
+    SDFileSystem sd(p5, p6, p7, p8, "sd"); // the pinout on the mbed Cool Components workshop board
+ 
+    mkdir("/sd/mydir", 0777);
+    
+    FILE *fp = fopen("/sd/mydir/sdtest.txt", "w");
+    if(fp == NULL) {
+        error("Could not open file for write\c\n");
+    }
+    fprintf(fp, "Hello fun SD Card World!\c\n");
+    fclose(fp); 
+ 
+    printf("Goodbye World!\c\n");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Feb 01 18:38:22 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/0954ebd79f59
\ No newline at end of file