SDHC support till 32GB
Dependencies: mbed FatFileSystem
main.cpp
- Committer:
- xxll
- Date:
- 2010-07-24
- Revision:
- 0:90601632692f
File content as of revision 0:90601632692f:
#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); }