Modifications

Sauter à la navigation Sauter à la recherche
486 octets ajoutés ,  13 juin 2012 à 18:25
Ligne 56 : Ligne 56 :     
== Test du LCD ==
 
== Test du LCD ==
We have a library with example code ready to go for use with these TFTs. The library is not incredibly fast and optimized but its a good start and can easily be ported to other micrcontrollers. However, we'll assume you're using an Arduino  
+
AdaFruit fournit une librairie prêt à l'emploi incluant des exemples de code utilisable avec ces TFTs. Cette librairie n'est pas incroyablement rapide, ni fortement optimisée mais c'est un bon point de départ. Elle peut être facilement portée vers d'autres microcontroleurs. Nous partons cependant du principe que vous utilisez un Arduino.
   −
[https://github.com/adafruit/TFTLCD-Library Visit our github repository] and click on the '''Downloads''' button in the top right corner to download a zip of the library and examples. Uncompress the folder and '''rename it TFTLCD''' make sure that inside that folder is the cpp and .h files. Then copy it to your arduinosketchfolder/libraries folder. [http://www.ladyada.net/library/arduino/libraries.html See our tutorial for more details].
+
[https://github.com/adafruit/TFTLCD-Library Visitez le dépôt github d'AdaFruit] et cliquez sur le bouton '''Downloads''' (dans le coin en haut a droite) pour télécharger l'archive Zip contenant la librairie et les exemples. Décompressez le répertoire qu'elle contient et '''renommez le TFTLCD'''. Assurez vous que le répertoire contienne bien les fichiers .cpp et .h. Ensuite, copier le répertoire dans votre répertoire_des_sketchs_arduino/libraries . [http://www.ladyada.net/library/arduino/libraries.html LadyAda vous propose un tutoriel plus détaillé] (''en anglais'').
   −
[https://github.com/adafruit/Adafruit-GFX-Library You will also need to get the GFX graphics core] and click on the '''Downloads''' button in the top right corner to download a zip of the library and examples. Uncompress the folder and rename it '''Adafruit_GFX''' make sure that inside that folder is the cpp and .h files. Then copy it to your arduinosketchfolder/libraries folder.  
+
Vous aurez également besoin de  [https://github.com/adafruit/Adafruit-GFX-Library la librarie "GFX graphics core" disponible dans ce dépôt GitHub]. Cliquez sur le bouton '''Downloads''' en haut à droite pour télécharger l'Archive Zip (incluant la librarie et les exemples). Décompressez le répertoire qu'elle contient et renommez le '''Adafruit_GFX'''. Assurez-vous que le répertoire contienne les fichier cpp and .h. Ensuite, copier le répertoire dans votre répertoire_des_sketchs_arduino/libraries .  
    
{{tmbox  
 
{{tmbox  
 
| type  = speedy  
 
| type  = speedy  
| text = For this shield, there is one more step! Open up the TFTLCD.h file in the libraries folder and uncomment the line at the top that says: }}
+
| text = Il y a une étape complémentaire pour ce shield! Ouvrez le fichier TFTLCD.h dans le répertoire ''libraries'' et décommentre la ligne en haut du fichier qui indique:
   −
//comment or uncomment the next line for special pinout!  
+
//comment or uncomment the next line for special pinout!  
#define USE_ADAFRUIT_SHIELD_PINOUT
+
#define USE_ADAFRUIT_SHIELD_PINOUT
 +
}}
   −
Restart the Arduino software. You should see a new '''example''' folder called '''TFTLCD''' and inside, an example called '''graphicstest'''. Upload that sketch to your Arduino. You should see a collection of graphical tests draw out on the TFT
+
Redémarrez votre environnement Arduino. Vous devriez constater un nouveaux répertoire '''example''' (d'exemple) portant le nom '''TFTLCD'''. A l'intérieur de ce dernier, il y a un exemple nommé '''graphicstest'''. Chargez ce sketch sur votre Arduino. Vous constaterez que le TFT affiche une série de tests graphiques.
    
[[Fichier:TftTouch-graphictest.jpeg]]
 
[[Fichier:TftTouch-graphictest.jpeg]]
29 917

modifications

Menu de navigation