I'm attempting to read an sd card attached to a Teensy 3.5 and also a Teensy 3.2. The Teensy 3.5 code works with no problem, but the Teensy 3.2 code fails.
The sketch in this thread is able to read the card when I use the following:
What do I need to do to keep the Teensy 3.5 at full speed and also read the Teensy 3.2 card? Note: I'm only reading single lines from a text file on the card.
Code:
#ifdef TEENSY_35
if (!(SD.begin(BUILTIN_SDCARD)))
{
Serial.println("Unable to access the SD card");
delay(200);
}
#else // Teensy 3.2
{
if (!(SD.begin(PIN_SPI_CS))) // 10
{
Serial.println("Unable to access the SD card");
delay(200);
}
#endif
Code:
if (!card.init(SPI_QUARTER_SPEED, chipSelect))
What do I need to do to keep the Teensy 3.5 at full speed and also read the Teensy 3.2 card? Note: I'm only reading single lines from a text file on the card.