Good evening,
I am trying to use the ILI9341 to display some data during the execution of my code, but my display shows nothing and the function "loop" is not executed.
First of all I configure the pins DC, CS, SDO, SDI and SCK for the display and when I want to change the color of the screen to white with the function tft.fillScreen the code below this point is not executed.
What am I doing wrong? May anybody help me with this problem?
PINOUT
Vcc-->5V
GND->AGND
CS-->10
DC-->9
SDI-->12
SCK-->14
SDO-->11
LED-->5V via 100ohm resistor
Reset-->3.3V
CODE
#include <ILI9341_t3.h>
#include <SPI.h>
#include <Wire.h>
#define PIN_SCK 14
#define PIN_SDI 12
#define PIN_SDO 11
#define PIN_CS 10
#define PIN_DC 9
#define RST 255
#define ALTURA_LETRA 5
ILI9341_t3 tft=ILI9341_t3(PIN_CS,PIN_DC,RST,PIN_SDI,PIN_SCK,PIN_SDO);
void setup() {
tft.begin();
tft.fillScreen(ILI9341_WHITE);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(ALTURA_LETRA);
tft.setRotation(0);
tft.setCursor(0,0);
tft.println("Hola");
}
void loop() {
Rest of the program....
}
CURRENT WIRING

I am trying to use the ILI9341 to display some data during the execution of my code, but my display shows nothing and the function "loop" is not executed.
First of all I configure the pins DC, CS, SDO, SDI and SCK for the display and when I want to change the color of the screen to white with the function tft.fillScreen the code below this point is not executed.
What am I doing wrong? May anybody help me with this problem?
PINOUT
Vcc-->5V
GND->AGND
CS-->10
DC-->9
SDI-->12
SCK-->14
SDO-->11
LED-->5V via 100ohm resistor
Reset-->3.3V
CODE
#include <ILI9341_t3.h>
#include <SPI.h>
#include <Wire.h>
#define PIN_SCK 14
#define PIN_SDI 12
#define PIN_SDO 11
#define PIN_CS 10
#define PIN_DC 9
#define RST 255
#define ALTURA_LETRA 5
ILI9341_t3 tft=ILI9341_t3(PIN_CS,PIN_DC,RST,PIN_SDI,PIN_SCK,PIN_SDO);
void setup() {
tft.begin();
tft.fillScreen(ILI9341_WHITE);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(ALTURA_LETRA);
tft.setRotation(0);
tft.setCursor(0,0);
tft.println("Hola");
}
void loop() {
Rest of the program....
}
CURRENT WIRING
