I am using Teensy3.0 with an adafruit LCD (https://learn.adafruit.com/adafruit-2-4-color-tft-touchscreen-breakout/bitmaps-spi-mode). Everything is working reasonably well and I am able to display BMP files. BUT. It only works the first time I insert the micro SD card. If I restart the Teensy or Power off-on. It fails.
if (!SD.begin(SD_CS)) {
Serial.println("failed!");
}
However if I eject the SD card then reinsert. Bam! It works.
Not sure how/why this is possible. Anyone have an idea for what I can do here? This thing is going to be in an enclosure so the old micro-SD-swaperoo is not gonna happen.
Thanks!
if (!SD.begin(SD_CS)) {
Serial.println("failed!");
}
However if I eject the SD card then reinsert. Bam! It works.
Not sure how/why this is possible. Anyone have an idea for what I can do here? This thing is going to be in an enclosure so the old micro-SD-swaperoo is not gonna happen.
Thanks!