meh
Dependencies: SDFileSystem mbed
Fork of MemoriaSD by
Revision 1:6a0d1086a928, committed 2016-04-29
- Comitter:
- Soto
- Date:
- Fri Apr 29 23:57:57 2016 +0000
- Parent:
- 0:ff4a712c20b4
- Commit message:
- meh
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Apr 05 23:55:58 2016 +0000 +++ b/main.cpp Fri Apr 29 23:57:57 2016 +0000 @@ -1,8 +1,8 @@ #include "mbed.h" #include "SDFileSystem.h" -Serial pc(PTC4,PTC3); -SDFileSystem sd(PTD2, PTD3, PTD1, PTD0, "sd"); +Serial pc(USBTX, USBRX); +SDFileSystem sd(PTD2, PTD3, PTD1, PT, "sd"); int main() { @@ -10,7 +10,7 @@ pc.printf("Bienvenido"); char f[10] = {"/sd/mydir"}; char fll[23] = {"/sd/mydir/archivo1.txt"}; - char datos[1024]; + char datos[1024]={0}; char *carpeta; char *archivo; int serial=0;