hi there
I have purchased a 2.4" TFT and i can not get it to do anything the back lights are on tho.
this is the example i am using on my arduino pro mini:
#include <SPI.h>
#include <ILI9341_due_config.h>
#include <ILI9341_due.h>#include "fonts/Arial_bold_14.h"
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8ILI9341_due tft = ILI9341_due(TFT_CS, TFT_DC, TFT_RST);
void setup()
{
//Serial.begin(9600);bool result = tft.begin();
//Serial.print("TFT begin successful: ");
//Serial.println(result ? "YES" : "NO");tft.setRotation(iliRotation270);
tft.fillScreen(ILI9341_BLUE);tft.setFont(Arial_bold_14);
tft.setTextLetterSpacing(5);
tft.setTextColor(ILI9341_WHITE, ILI9341_BLUE);
tft.printAligned(F("Hello World"), gTextAlignMiddleCenter);
}void loop()
{/* add main program code here */
}
and this is how i have connected it:
GND:
7, 11, 12, 13, 14, 43, 48, 49, 50
3.3V:
1, 6, 8, 9, 35, 40, 41, 42
LED back light:
2, 3, 4, 5 (Through 100R to GND)
ILI9341 Arduino Pro mini (3.3v 8Mhz)
SCL: 37 13
MOSI: 34 11
MISO: 33 12
Reset: 10 8
CS: 38 10
DC: 36 9
pins 15 to 32 i have not connected i presumed this will make no different?
This is the diagram i have been looking at, fourth down on the right.
So what have i done this time??
Thanks Joe