Modifications

Sauter à la navigation Sauter à la recherche
829 octets ajoutés ,  12 juin 2012 à 06:23
Ligne 54 : Ligne 54 :  
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  
 
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/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 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/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.
 +
 
 +
{{tmbox
 +
| type  = speedy
 +
| text = Some text.}}
 +
 
 +
//comment or uncomment the next line for special 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
 +
 
 +
[[Fichier:TftTouch-graphictest.jpeg]]
    
== Références ==
 
== Références ==
29 917

modifications

Menu de navigation