Every other test works with the display, and I have CCS hooked to digital 4 (per demo code and instructions)
I have GND, VIN, CLK, MISO, MOSI, CS, D/C RST, Y+, X+, Y- and X-, and even GND hooked up in addition to CCS.
I have checked that the card is firmly seated. I have pulled the card and rechecked it on the computer. I tried both FAT and FAT32 on the 4GB SD card. The jumpers.bmp is indeed in the root.
And yes I went back and RTFM :) (First rule for engineers)
Code: Select all
#include <Adafruit_GFX.h> // Core graphics library
#include "Adafruit_HX8357.h"
#include <SPI.h>
#include <SD.h>
// TFT display and SD card will share the hardware SPI interface.
// Hardware SPI pins are specific to the Arduino board type and
// cannot be remapped to alternate pins. For Arduino Uno,
// Duemilanove, etc., pin 11 = MOSI, pin 12 = MISO, pin 13 = SCK.
#define TFT_DC 9
#define TFT_CS 10
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC);
#define SD_CS 4
void setup(void) {
Serial.begin(9600);
tft.begin(HX8357D);
tft.fillScreen(HX8357_BLUE);
Serial.print("Initializing SD card...");
if (!SD.begin(SD_CS)) {
Serial.println("failed!");
}
Serial.println("OK!");
bmpDraw("/jumpers.bmp", 0, 0);
}