Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 2 : Ligne 2 :     
{{traduction}}
 
{{traduction}}
 +
 +
== Installer les bibliothèques ==
 +
=== Bibliothèques ILI9341 ===
 +
 +
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.
 +
 +
[https://github.com/adafruit/Adafruit_ILI9341 Our github repository] contains all the code and examples you'll need for driving the TFT. You can download the latest ZIP by clicking the button below
 +
 +
* '''[https://github.com/adafruit/Adafruit_ILI9341/archive/master.zip Download the Adafruit ILI9341 Library]'''
 +
 +
Uncompress the folder and rename it '''Adafruit_ILI9341''' make sure that inside that folder is the '''Adafruit_ILI9341.cpp''' and '''Adafruit_ILI9341.h''' files. Then copy it to your "arduinosketchfolder/libraries" folder. For more details, especially for first-time library installers, [[Installation_d'un librairie Arduino|check out our great tutorial]]
 +
 +
=== Bibliothèque GFX ===
 +
 +
You're not done yet! You will also need to get the [https://github.com/adafruit/Adafruit-GFX-Library Adafruit GFX graphics core] - this is the general purpose graphics drawing library (the ILI9341 library just handles the low level stuff). Click this button to grab it if you don't have it yet.
 +
 +
* '''[https://github.com/adafruit/Adafruit-GFX-Library/archive/master.zip Download Adafruit GFX Library]'''
 +
 +
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 like before
 +
 +
=== Redémarrer Arduino IDE ===
 +
Comme après chaque installation de librairie, n'oubliez pas de redémarrer votre environnement Arduino IDE.
 +
 +
== Test Graphique ==
 +
 +
{{ADFImage|TFT-TOUCH-SHIELD-v2-Test-Graphique-01.jpg|640px}}
 +
 +
Restart the Arduino software. You should see a new '''exemples''' folder called '''Adafruit_ILI9341''' 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.
 +
 +
{{ADFImage|TFT-TOUCH-SHIELD-v2-Test-Graphique-02.png}}
    
{{TFT-TOUCH-SHIELD-v2-TRAILER}}
 
{{TFT-TOUCH-SHIELD-v2-TRAILER}}
29 917

modifications

Menu de navigation