jim lee
Well-known member
As far as I can tell I've commented out everything to do with my DFR0bot code. But SD.begin() always returns a fail.
I've looked at the chip select, mosi & miso signals and from what I can tell, they look fine. When I roll the display back into the code, it works and draws. I can see the chip select lines alternate as they should between the Display and the SD drive. I can see the mosi talk to the SD drive and the SD drive answer back. At the DIN pin (12 - on my T3.2) But it's like the Teensy can't hear it.
Any thoughts?
The test code
Thanks!
-jim lee
I've looked at the chip select, mosi & miso signals and from what I can tell, they look fine. When I roll the display back into the code, it works and draws. I can see the chip select lines alternate as they should between the Display and the SD drive. I can see the mosi talk to the SD drive and the SD drive answer back. At the DIN pin (12 - on my T3.2) But it's like the Teensy can't hear it.
Any thoughts?
The test code
Code:
//#include <DFRobot_0669.h>
#include <SD.h>
// For DFRobot_0669
#define DSP_CS 10
#define SD_CS 4
#define DSP_RST 26
void setup() {
Serial.begin(9600);
delay(2000);
/*
Serial.println("Allocation of screen");
screen = (displayObj*) new DFRobot_0669(DSP_CS,DSP_RST);
Serial.println("screen allocated");
screen->begin();
Serial.println("begin called");
screen->fillScreen(&green);
Serial.println("screen green?");
*/
if (!SD.begin(SD_CS)) { // With icons, we now MUST have an SD card.
Serial.println("NO SD CARD!"); // Send an error out the serial port.
//screen->setCursor(10,10); // Move cursor to the top left.
//screen->setTextColor(&red); // Drawing in white..
//screen->setTextSize(2); // Big enough to notice.
//screen->drawText("NO SD CARD!"); // Draw the error message.
} else {
//screen->setCursor(10,10); // Move cursor to the top left.
//screen->setTextColor(&black); // Drawing in white..
//screen->setTextSize(2); // Big enough to notice.
//screen->drawText("FOUND SD CARD!"); // Draw the error message.
}
}
void loop() {
}
Thanks!
-jim lee