Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SDFileSystem by
Revision 3:fc046022488b, committed 2013-11-26
- Comitter:
- sherryxy
- Date:
- Tue Nov 26 19:29:19 2013 +0000
- Parent:
- 2:c8f66dc765d4
- Commit message:
- length
Changed in this revision
datalogging.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c8f66dc765d4 -r fc046022488b datalogging.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datalogging.cpp Tue Nov 26 19:29:19 2013 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" +#include "SDFileSystem.h" + + SDFileSystem sd(p5, p6, p7, p12, "sd"); // mosi, miso, sclk, cs + + int main() { + FILE *fp = fopen("/sd/myfile.txt", "w"); + fprintf(fp, " \n"); + fclose(fp); + } \ No newline at end of file