Aucun Affichage sur Ecran TFT tjctm24028-spi V.1.1

Bonjour tous le monde après plusieurs tentatives et des heures de surf, je ne parviens toujours pas avoir a avoir un affichage sur un Ecran TFT tjctm24028-spi V.1.1 sur un arduino UNO (clone)

j'ai bien importer la bibliotheque

  • Adafruit_ILI9340
  • Adafruit_GFX.h
  • Adafruit_TFTLCD.h
  • TouchScreen.h
  • UTFT
    ....

J'execute le script d'exemple fournis par la bibliothèque (graphictest)

MES PINS SONT :

SCK ----> PIN 13
MISO ----> PIN 12
MOSI ----> PIN 11
CS ----> PIN 10
D/C ----> PIN 9
RESEAT ----> PIN 8

GND -> GND
LED -> 3,3 V
VCC -> 5V

RETRO-ECLAIRAGE DE L'ECRAN OK mais rien de plus...

Etant novices, ne dois-je pas passer avant tous cela par une etape d'installation de Driver ou...?

Merci beaucoups d'avance.

Source déja visiter :

http://www.electrodragon.com/w/SPI_LCD

http://nailbuster.com/?page_id=341

il nous faut un lien vers ton écran stp.

les 2 derniers liens des "sources visitées" ne correspondent pas à ton hardware/écran
lien d'achat ou photo du verso de l'écran comme çà
les tft SPI doivent etre commandés par des niveaux logiques SPI en 3v3, certains ont des "level shifters" intégrés donc on peut envoyer le spi en 5 volts, pas le tjctm24028 SPI

Le sujet est évoqué ici

Leptro & elektrax : Merci Beaucoups j'y penserais la prochaine fois.

fdufnews : Merci ton lien m'a beaucoups servis a revoir mon brochage

Cependant bien qu'ayant repris tous mon schema et installer du coups je pense la bonne librairie "ILI9341".

J'obtiens toujours le même résultat

ILI9341 Test!
Display Power Mode: 0x0
MADCTL Mode: 0x0
Pixel Format: 0x0
Image Format: 0x0
Self Diagnostic: 0x0
Benchmark Time (microseconds)
Screen fill 1449096
Text 144944
Lines 1187128
Horiz/Vert Lines 122724
Rectangles (outline) 80308
Rectangles (filled) 3007788
Circles (filled) 586640
Circles (outline) 510124
Triangles (outline) 263572
Triangles (filled) 1308096
Rounded rects (outline) 208804
Rounded rects (filled) 3321908
Done!
intégrés donc on peut envoyer le spi en 5 volts, pas le tjctm24028 SPI

J'ai du mal a comprendre .

Merci.

le tjctm spi n'a pas de convertisseur 5/3 volts intégré, il faut ajouter un level shifter extérieur entre les sorties uno vers tft, à base de résistances ou autres

Oui merci j'ai l'impression que cela améliore mon resultat mais toujours...

ILI9341 Test!
Display Power Mode: 0xFF
MADCTL Mode: 0xFF
Pixel Format: 0xFF
Image Format: 0xFF
Self Diagnostic: 0xFF
Benchmark Time (microseconds)
Screen fill 1449096
ILI9341 Test!
Display Power Mode: 0xFF
MADCTL Mode: 0xFF
Pixel Format: 0xFF
Image Format: 0xFF
Self Diagnostic: 0xFF
Benchmark Time (microseconds)
Screen fill 1449096
Text 144940
Lines 1187100
Horiz/Vert Lines 122724
Rectangles (outline) 80304
Rectangles (filled) 3007772
Circles (filled) 586640
Circles (outline) 510144
Triangles (outline) 263580
Triangles (filled) 1308080
Rounded rects (outline) 208800
Rounded rects (filled) 3321904
Done!

J'ai bien placer une resistance devant mon CS et DC et le tous est aimenter depuis Arduino Uno en sortie 3,3v.

je n'ai plus vraiment d'idee

j'ai utiliser les PIN 11 et 12 pour le CS et DC

Merci.

Re-bonjour

j'ai revus mon brochage en :

#define TFT_DC 12
#define TFT_CS 11
#define TFT_MOSI 9
#define TFT_MISO 10
#define TFT_RST A0
#define TFT_CLK 13

et j'obtiens :

ILI9341 Test!
Display Power Mode: 0x94
MADCTL Mode: 0x48
Pixel Format: 0x5
Image Format: 0x80
Self Diagnostic: 0xC0

Mieux non? lol

Quelqu'un aurais une doc svp qui explique le debug svp. ?

Merci

WORK !!!! Merci beaucoups a vous tous!!!

je met mon graphique test si sa peux servir a l'avenir...

encore merci.!

/***************************************************
 This is our GFX example for the Adafruit ILI9341 Breakout and Shield
 ----> http://www.adafruit.com/products/1651

 Check out the links above for our tutorials and wiring diagrams
 These displays use SPI to communicate, 4 or 5 pins are required to
 interface (RST is optional)
 Adafruit invests time and resources providing this open source code,
 please support Adafruit and open-source hardware by purchasing
 products from Adafruit!

 Written by Limor Fried/Ladyada for Adafruit Industries.
 MIT license, all text above must be included in any redistribution
****************************************************/


#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"

// For the Adafruit shield, these are the default.
#define TFT_DC 12
#define TFT_CS 11
#define TFT_MOSI 9
#define TFT_MISO 10
#define TFT_RST 8
#define TFT_CLK 13

// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// If using the breakout, change pins as desired
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);

void setup() {
 Serial.begin(9600);
 Serial.println("ILI9341 Test!"); 

 tft.begin();


 // read diagnostics (optional but can help debug problems)
 uint8_t x = tft.readcommand8(ILI9341_RDMODE);
 Serial.print("Display Power Mode: 0x"); Serial.println(x, HEX);
 x = tft.readcommand8(ILI9341_RDMADCTL);
 Serial.print("MADCTL Mode: 0x"); Serial.println(x, HEX);
 x = tft.readcommand8(ILI9341_RDPIXFMT);
 Serial.print("Pixel Format: 0x"); Serial.println(x, HEX);
 x = tft.readcommand8(ILI9341_RDIMGFMT);
 Serial.print("Image Format: 0x"); Serial.println(x, HEX);
 x = tft.readcommand8(ILI9341_RDSELFDIAG);
 Serial.print("Self Diagnostic: 0x"); Serial.println(x, HEX); 
 
 Serial.println(F("Benchmark                Time (microseconds)"));
 delay(10);
 Serial.print(F("Screen fill              "));
 Serial.println(testFillScreen());
 delay(500);

 Serial.print(F("Text                     "));
 Serial.println(testText());
 delay(3000);

 Serial.print(F("Lines                    "));
 Serial.println(testLines(ILI9341_CYAN));
 delay(500);

 Serial.print(F("Horiz/Vert Lines         "));
 Serial.println(testFastLines(ILI9341_RED, ILI9341_BLUE));
 delay(500);

 Serial.print(F("Rectangles (outline)     "));
 Serial.println(testRects(ILI9341_GREEN));
 delay(500);

 Serial.print(F("Rectangles (filled)      "));
 Serial.println(testFilledRects(ILI9341_YELLOW, ILI9341_MAGENTA));
 delay(500);

 Serial.print(F("Circles (filled)         "));
 Serial.println(testFilledCircles(10, ILI9341_MAGENTA));

 Serial.print(F("Circles (outline)        "));
 Serial.println(testCircles(10, ILI9341_WHITE));
 delay(500);

 Serial.print(F("Triangles (outline)      "));
 Serial.println(testTriangles());
 delay(500);

 Serial.print(F("Triangles (filled)       "));
 Serial.println(testFilledTriangles());
 delay(500);

 Serial.print(F("Rounded rects (outline)  "));
 Serial.println(testRoundRects());
 delay(500);

 Serial.print(F("Rounded rects (filled)   "));
 Serial.println(testFilledRoundRects());
 delay(500);

 Serial.println(F("Done!"));

}


void loop(void) {
 for(uint8_t rotation=0; rotation<4; rotation++) {
   tft.setRotation(rotation);
   testText();
   delay(1000);
 }
}

unsigned long testFillScreen() {
 unsigned long start = micros();
 tft.fillScreen(ILI9341_BLACK);
 yield();
 tft.fillScreen(ILI9341_RED);
 yield();
 tft.fillScreen(ILI9341_GREEN);
 yield();
 tft.fillScreen(ILI9341_BLUE);
 yield();
 tft.fillScreen(ILI9341_BLACK);
 yield();
 return micros() - start;
}

unsigned long testText() {
 tft.fillScreen(ILI9341_BLACK);
 unsigned long start = micros();
 tft.setCursor(0, 0);
 tft.setTextColor(ILI9341_WHITE);  tft.setTextSize(1);
 tft.println("Hello World!");
 tft.setTextColor(ILI9341_YELLOW); tft.setTextSize(2);
 tft.println(1234.56);
 tft.setTextColor(ILI9341_RED);    tft.setTextSize(3);
 tft.println(0xDEADBEEF, HEX);
 tft.println();
 tft.setTextColor(ILI9341_GREEN);
 tft.setTextSize(5);
 tft.println("Groop");
 tft.setTextSize(2);
 tft.println("I implore thee,");
 tft.setTextSize(1);
 tft.println("my foonting turlingdromes.");
 tft.println("And hooptiously drangle me");
 tft.println("with crinkly bindlewurdles,");
 tft.println("Or I will rend thee");
 tft.println("in the gobberwarts");
 tft.println("with my blurglecruncheon,");
 tft.println("see if I don't!");
 return micros() - start;
}

unsigned long testLines(uint16_t color) {
 unsigned long start, t;
 int           x1, y1, x2, y2,
               w = tft.width(),
               h = tft.height();

 tft.fillScreen(ILI9341_BLACK);
 yield();
 
 x1 = y1 = 0;
 y2    = h - 1;
 start = micros();
 for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);
 x2    = w - 1;
 for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);
 t     = micros() - start; // fillScreen doesn't count against timing

 yield();
 tft.fillScreen(ILI9341_BLACK);
 yield();

 x1    = w - 1;
 y1    = 0;
 y2    = h - 1;
 start = micros();
 for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);
 x2    = 0;
 for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);
 t    += micros() - start;

 yield();
 tft.fillScreen(ILI9341_BLACK);
 yield();

 x1    = 0;
 y1    = h - 1;
 y2    = 0;
 start = micros();
 for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);
 x2    = w - 1;
 for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);
 t    += micros() - start;

 yield();
 tft.fillScreen(ILI9341_BLACK);
 yield();

 x1    = w - 1;
 y1    = h - 1;
 y2    = 0;
 start = micros();
 for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);
 x2    = 0;
 for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);

 yield();
 return micros() - start;
}

......