I am using SD card reader for the first time and I trying all possible options /info I can get to or from SD card reader.
I noticed that there are two possible ways to declare the SD card. In both you use SD.h library
The most common is:
SD.begin(chipSelect)
The other method is :
requires following declarations:
Sd2Card card;
SdVolume volume;
SdFile root;
card.init(SPI_HALF_SPEED, chipSelect))
In the second method I can then get the FAT type and volume size in this way.
Serial.print("Volume size (Kb): ");
Serial.println(volume.blocksPerCluster()*
volume.clusterCount() /2);
Serial.print("Volume type is: FAT");
Serial.println(volume.fatType(), DEC);
I am struggling to get the same information if I choose to declare SD card reader using the first method. Anybody knows how can I pull the FAT type and SD card size in this scenario?