![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork for test compile on Happy Gecko With updates 160210
Dependencies: SDFileSystem mbed
Fork of SDFileSystem_HelloWorld_2 by
main.cpp
- Committer:
- gardnmc
- Date:
- 2016-04-21
- Revision:
- 2:edaca40406e8
- Parent:
- 0:bdbd3d6fc5d5
File content as of revision 2:edaca40406e8:
#include "mbed.h" #include "SDFileSystem.h" SDFileSystem sd(PE10, PE11, PE12, PE13, "sd"); // the pinout on the mbed Cool Components workshop board int main() { printf("Hello World!\n"); mkdir("/sd/mydir", 0777); FILE *fp = fopen("/sd/mydir/sdtest.txt", "w"); if(fp == NULL) { error("Could not open file for write\n"); } fprintf(fp, "Hello from Mike SD Card World!"); fclose(fp); printf("Goodbye World!\n"); }