![](/media/cache/profiles/c51ce410c124a10e0db5e4b97fc2af39.50x50_q85.jpg)
Diff: main.cpp
- Revision:
- 0:666a082cf50f
- Child:
- 1:2dec995d53f8
diff -r 000000000000 -r 666a082cf50f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 19 14:04:44 2009 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "SDFileSystem.h" + +SDFileSystem sd(p11, p12, p13, p28, "sd"); + +int main() { + printf("Hello World!\n"); + + FILE *fp = fopen("/sd/sdtest.txt", "w"); + if(fp == NULL) { + error("Could not open file for write\n"); + } + fprintf(fp, "Hello SD Card World!"); + fclose(fp); + + printf("Goodbye World!\n"); +}