SD Card Interface class. Log raw data bytes to memory addresses of your choice, or format the card and use the FAT file system to write files.

Dependencies:   mbed

Revision:
5:d85e20b6b904
Parent:
4:9a5878d316d5
Child:
6:ddf09d859ed7
--- a/main.cpp	Fri Aug 27 00:59:28 2010 +0000
+++ b/main.cpp	Sat Jan 15 05:58:22 2011 +0000
@@ -21,7 +21,6 @@
     FILE *fp = fopen("/SDCard/message.txt", "w");
     fprintf(fp, "Hello, World!");
     fclose(fp);
-
     /*DIR *d = opendir("/SDCard/testdir");
     struct dirent *p;
     while ((p = readdir(d)) != NULL)
@@ -30,11 +29,11 @@
     }
     closedir(d);
     remove("/SDCard/testdir/TEST.txt");*/
-    int test = rename("/SDCard/message.txt", "/SDCard/message2.txt");
+    //int test = rename("/SDCard/message.txt", "/SDCard/message2.txt");
 
-    fp = fopen("/SDCard/message.txt", "a");
-    fprintf(fp, "  result = %d", test);
-    fclose(fp);
+    //fp = fopen("/SDCard/message.txt", "a");
+    //fprintf(fp, "  result = %d", test);
+    //fclose(fp);
     
 /////////////////////
     if (1)