Now, I tested my SD card using the following codes with the working results. Plz help me check it why the SD card can not create any files, thanks very much.
Quote:
float SDTest = 9.0000;
void setup() {
USB.begin();
//Code for checking that the SD card is installed and functional
SD.ON();
SDTest = SD.isSD();
if (SDTest == 9.0000)
USB.println("Check function failed");
else if (SDTest == 0.0000)
USB.println("SD card is not inserted");
else if (SDTest == 1.86)
USB.println("SD card successfully inserted");
else
{
USB.println("SD card reading problem - unspecified error");
}
USB.println(SDTest);
USB.println("Disk Info: ");
USB.println(SD.print_disk_info());
// Creating the new file on the SD card to be written to
SD.create("Test_File_Ag.txt");
}[/code]
The test results are:
Quote:
SD card reading problem - unspecified error
1.0000000000
Disk Info: