![](/media/cache/profiles/09bd2862fe3035ad3223816b439045e3.50x50_q85.jpg)
BoardOrange Test Program 2013/08/13 SD -> SDHC 対応
Dependencies: EthernetNetIf FATFileSystem HTTPServer MSCFileSystem_Lib TextLCD mbed
Fork of BoardOrange_Test by
main.cpp@0:90601632692f, 2010-07-24 (annotated)
- Committer:
- xxll
- Date:
- Sat Jul 24 19:45:29 2010 +0000
- Revision:
- 0:90601632692f
- Child:
- 1:ddba0c9b886a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xxll | 0:90601632692f | 1 | #include "mbed.h" |
xxll | 0:90601632692f | 2 | #include "string" |
xxll | 0:90601632692f | 3 | #include "SDHCFileSystem.h" |
xxll | 0:90601632692f | 4 | |
xxll | 0:90601632692f | 5 | SDFileSystem sd(p5, p6, p7, p8, "sd"); // mosi, miso, sclk, cs |
xxll | 0:90601632692f | 6 | |
xxll | 0:90601632692f | 7 | int main() { |
xxll | 0:90601632692f | 8 | |
xxll | 0:90601632692f | 9 | FILE *fp = fopen("/sd/myfile.txt", "w"); |
xxll | 0:90601632692f | 10 | fprintf(fp, "\n\rHello World!\n\r"); |
xxll | 0:90601632692f | 11 | fclose(fp); |
xxll | 0:90601632692f | 12 | } |