GPS + Logging
Dependencies: FatFileSystem MBed_Adafruit-GPS-Library mbed
Fork of SDHCFileSystem by
Diff: main.cpp
- Revision:
- 0:90601632692f
- Child:
- 1:fe331bb498a0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Jul 24 19:45:29 2010 +0000 @@ -0,0 +1,12 @@ + #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); + } \ No newline at end of file