void setup() {
Serial.begin(9600);
while (!Serial) {
}
Serial.print("\nInitializing SD card...");
if (!card.init(SPI_HALF_SPEED, chipSelect)) {
Serial.println("initialization failed. Things to check:");
Serial.println("* is a card inserted?");
Serial.println("* is your wiring correct?");
Serial.println("* did you change the chipSelect pin to match your shield or module?");
return;
} else {
Serial.println("Wiring is correct and a card is present.");
}
到這裡就return了作者: 超新手 時間: 2017-3-31 09:50
SD Card 是怎麼接的?
Arduino Mega 要接到 50, 51, and 52
其他機種(如UNO)則接 11, 12, and 13 作者: and1234577 時間: 2017-4-7 22:43
謝謝拉~我問完後有試成功囉~