I was getting negative numbers for the Volume size when running the new CardInfo example. Seems to work better with an unsigned long instead of a signed long around line 85.
was:
// print the type and size of the first FAT-type volume
long volumesize;
Output:
Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Volume type is FAT16
Volume size (bytes): -334233600
Volume size (Kbytes): -326400
Volume size (Mbytes): -318
Files found on the card (name, date and size in bytes):
TEST.TXT 2000-01-01 01:00:00 847
Patched:
// print the type and size of the first FAT-type volume
unsigned long volumesize;
Better output:
Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Volume type is FAT16
Volume size (bytes): 3960733696
Volume size (Kbytes): 3867904
Volume size (Mbytes): 3777
Files found on the card (name, date and size in bytes):
TEST.TXT 2000-01-01 01:00:00 847
Hope this is helpful. I understand there may be other issues with using this size card, but it's what I had on hand. Really appreciate the example of reading the directory. I needed that!