Hi,
I bought this TFT display
but im having no luck getting it to work with DUE.
Wiring:
8 Pins on TFT pcb are GND VCC CLK MOSI RES DC BLK MISO
TFT - DUE
GND - GND
VCC - 3.3V
RES - Digital Pin 30
DC - Digital Pin 31
CLK - NOT USED
MOSI - NOT USED
BLK - NOT USED
MISO - NOT USED
Coding
Looking at the ILI9341 library code, i see we can instantiate the TFT without CS pin using this option:
/*! FROM ILI9341 Adafruit Lib
@brief Instantiate Adafruit ILI9341 driver with hardware SPI using the
default SPI peripheral.
@param cs Chip select pin # (OK to pass -1 if CS tied to GND).
@param dc Data/Command pin # (required).
@param rst Reset pin # (optional, pass -1 if unused).
Adafruit_ILI9341::Adafruit_ILI9341(int8_t cs, int8_t dc, int8_t rst)
*/
With the DUE and Adafruit ILI9341 library (version 1.5.6) installed, I edited the graphicstest.ino example in attempt to get the TFT working.
#define TFT_CS -1 // TFT CS pin is connected to arduino pin 8 (no pin on TFT PCB)
#define TFT_DC 31 // TFT DC pin is connected to arduino pin 31
#define TFT_RST 30 // TFT RST pin is connected to arduino pin 30 (named RES on TFT PCB)
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
The sketch compiles, uploads and executes as expected and we see it goes through the motions in the Serial Monitor, but the screen remains white, before during and after sketch execution.
I've attached the full sketch for reference if it helps.
I understand there has been previous threads relating to this screen where others have attempted to it to work with 5v boards, unfortunately ive not been able to use those to help me here. Maybe someone used to the these screens can spot the issue straight away?
Thanks
Alex
graphicstest_edit.ino (10.3 KB)