blah
Fork of SDFileSystem by
datalogging.cpp@3:fc046022488b, 2013-11-26 (annotated)
- Committer:
- sherryxy
- Date:
- Tue Nov 26 19:29:19 2013 +0000
- Revision:
- 3:fc046022488b
length
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sherryxy | 3:fc046022488b | 1 | #include "mbed.h" |
sherryxy | 3:fc046022488b | 2 | #include "SDFileSystem.h" |
sherryxy | 3:fc046022488b | 3 | |
sherryxy | 3:fc046022488b | 4 | SDFileSystem sd(p5, p6, p7, p12, "sd"); // mosi, miso, sclk, cs |
sherryxy | 3:fc046022488b | 5 | |
sherryxy | 3:fc046022488b | 6 | int main() { |
sherryxy | 3:fc046022488b | 7 | FILE *fp = fopen("/sd/myfile.txt", "w"); |
sherryxy | 3:fc046022488b | 8 | fprintf(fp, " \n"); |
sherryxy | 3:fc046022488b | 9 | fclose(fp); |
sherryxy | 3:fc046022488b | 10 | } |