asd

Dependencies:   SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by mbed official

SD card write - fat file system kl46z

Revision:
5:61647cd1e811
Parent:
4:b77d7295fce4
--- a/main.cpp	Thu Aug 24 00:24:00 2017 +0000
+++ b/main.cpp	Thu Aug 24 00:47:10 2017 +0000
@@ -2,22 +2,23 @@
 #include "SDFileSystem.h"
 
 SDFileSystem sd(PTA16,PTA17,PTA15,PTA14, "sd"); // the pinout on the mbed Cool Components workshop board
-
 int main()
 {
-    mkdir("/sd/MiDirectorio2", 0777); //creacion directorio
+    mkdir("/sd/MiDirectorio", 0777); //creacion directorio
 
-    FILE *fp = fopen("/sd/MiDirectorio2/sdtest.txt", "a"); //puntero tipo file guarda directorio
+    FILE *fp = fopen("/sd/MiDirectorio/sdtest.txt", "a"); //puntero tipo file guarda directorio
  /*   if(fp == NULL) {
         error("No se pudo abrir archivo para escritura\n");
     };
 */
     fprintf(fp, "Hola Mundo - SD card"); //file print
     fprintf(fp,"\n");
+    fprintf(fp,"Blanc Federico");
+    fprintf(fp,"\n");
     fprintf(fp,"Kenedy Patricio");
     fprintf(fp,"\n");
     fprintf(fp,"Scilabra Martin");
     fprintf(fp,"\n");
     fprintf(fp,"Serafini Gerardo");
     fclose(fp); //cierra archivo
-}
\ No newline at end of file
+};