SDHC support till 32GB
Dependencies: mbed FatFileSystem
Diff: main.cpp
- Revision:
- 0:90601632692f
diff -r 000000000000 -r 90601632692f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Jul 24 19:45:29 2010 +0000 @@ -0,0 +1,12 @@ + #include "mbed.h" + #include "string" + #include "SDHCFileSystem.h" + + SDFileSystem sd(p5, p6, p7, p8, "sd"); // mosi, miso, sclk, cs + + int main() { + + FILE *fp = fopen("/sd/myfile.txt", "w"); + fprintf(fp, "\n\rHello World!\n\r"); + fclose(fp); + } \ No newline at end of file