Add totalBytes / usedBytes to SD/SDMMC (#673)

to be same as SPIFFS
This commit is contained in:
Luc
2017-09-28 10:01:02 +08:00
committed by Me No Dev
parent a66b544d18
commit 3ba46c7fbc
6 changed files with 65 additions and 0 deletions

View File

@ -212,6 +212,8 @@ void setup(){
renameFile(SD, "/hello.txt", "/foo.txt");
readFile(SD, "/foo.txt");
testFileIO(SD, "/test.txt");
Serial.printf("Total space: %lluMB\n", SD.totalBytes() / (1024 * 1024));
Serial.printf("Used space: %lluMB\n", SD.usedBytes() / (1024 * 1024));
}
void loop(){