SDHC support till 32GB

Dependencies:   mbed FatFileSystem

Committer:
odaki62
Date:
Wed Jul 14 21:54:47 2021 +0000
Revision:
1:bdc284d67f77
Parent:
0:90601632692f
test

Who changed what in which revision?

UserRevisionLine numberNew 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 }