|
|
|
|
|
|
|
|
// Wiz820+SD board: pin 4 |
|
|
// Wiz820+SD board: pin 4 |
|
|
// Teensy 2.0: pin 0 |
|
|
// Teensy 2.0: pin 0 |
|
|
// Teensy++ 2.0: pin 20 |
|
|
// Teensy++ 2.0: pin 20 |
|
|
const int chipSelect = BUILTIN_SDCARD; |
|
|
|
|
|
|
|
|
const int chipSelect = 4; |
|
|
|
|
|
|
|
|
void setup() |
|
|
void setup() |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
Serial.println("* did you change the chipSelect pin to match your shield or module?"); |
|
|
Serial.println("* did you change the chipSelect pin to match your shield or module?"); |
|
|
return; |
|
|
return; |
|
|
} else { |
|
|
} else { |
|
|
Serial.println("Wiring is correct and a card is present."); |
|
|
|
|
|
|
|
|
Serial.println("Wiring is correct and a card is present."); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// print the type of card |
|
|
// print the type of card |