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