asd
Dependencies: SDFileSystem mbed
Fork of SDFileSystem_HelloWorld by
SD card write - fat file system kl46z
main.cpp
- Committer:
- fblanc92
- Date:
- 2017-08-24
- Revision:
- 3:b2658ae9fc38
- Parent:
- 2:8a7953dfeccd
- Child:
- 4:b77d7295fce4
File content as of revision 3:b2658ae9fc38:
#include "mbed.h" #include "SDFileSystem.h" SDFileSystem sd(PTA16,PTA17,PTA15,PTA14, "sd"); // the pinout on the mbed Cool Components workshop board int main() { mkdir("/sd/MiDirectorio", 0777); //creacion directorio FILE *fp = fopen("/sd/MiDirectorio/sdtest.txt", "w"); //puntero tipo file guarda directorio /* if(fp == NULL) { error("No se pudo abrir archivo para escritura\n"); }; */ fprintf(fp, "Hola Mundo - SD card - Blanc Federico, Kenedy Patricio, Scilabra Martin, Serafini Gerardo"); //file print fclose(fp); //cierra archivo }