connection Arduino TFT LCD Screen

Bonjour

Je n'arrive pas à faire fonctionner mon écran arduino (A000096) sur ma MEGA 2560

J'ai connecté mon écran sur les broches suivantes:
#define cs 10
#define dc 9
#define rst 8
+5v to +5v
GND to GND

Le programme de test:
#include <SPI.h>
#include <TFT.h> // Arduino LCD library

#define cs 10
#define dc 9
#define rst 8

TFT screen = TFT(cs, dc, rst);

void setup() {
// initialize the screen
screen.begin();

// make the background white
screen.background(0,255,255);
}

void loop() {

}

Mais quand je téléverse rien ne se passe, le couleur ne change pas, j'ai essayé d'écrire du texte mais là non plus rien ne passe!

Qu'est ce que j'ai oublié?

Merci pour votre aide.

Cordialement

murphy

  • vous avez plus avantage à poser votre question sur le forum français
  • quelle version ide arduino et tft ?
    Library Update: There is a known issue with the TFT library supplied in IDE versions 1.0.5 and 1.5.4 Beta. You will need to replace the library. We have zipped up the updated TFT library for both versions available here. Just delete the existing library and copy in the replacement for the appropriate IDE version and restart the IDE. (IDE v1.0.5 or v1.5.4)
    c'est bien ce modele ? https://www.arduino.cc/en/Guide/TFTtoBoards

To connect the lcd screen to a Mega board, use this pin configuration:

+5V: +5V
MISO: 50 on Mega 2560
SCK: 52 on Mega 2560
MOSI: 51 on Mega 2560
LCD CS: pin 10

D/C: pin 9
RESET: pin 8
BL: +5V
GND: GND

Bonsoir,

Merci pour votre réponse.

J'ai l'IDE Arduino 1.6.1 et Arduino TFT c'est la version dont vous m'avez donné le lien

Je teste ça.

Cordialement.

Murphy01

Bonsoir, Hi

Ca fonctionne avec vos infos! encore merci pour votre aide.

it works with your information. So thank you for your help.

I will make into account your remark about forum in english for my next posts! :slight_smile:

Best regards

Murphy01