User Tools

Site Tools


tutorials:products:18tftbreakout:index.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:products:18tftbreakout:index.html [2012/04/24 18:47]
ladyada
tutorials:products:18tftbreakout:index.html [2016/01/28 18:05] (current)
Line 7: Line 7:
 This tutorial is for our 1.8" diagonal TFT display & microSD breakout board. This breakout is the best way to add a small, colorful and bright display to any project. Since the display uses 4-wire SPI to communicate and has its own pixel-addressable frame buffer, it can be used with every kind of microcontroller. Even a very small one with low memory and few pins available! This tutorial is for our 1.8" diagonal TFT display & microSD breakout board. This breakout is the best way to add a small, colorful and bright display to any project. Since the display uses 4-wire SPI to communicate and has its own pixel-addressable frame buffer, it can be used with every kind of microcontroller. Even a very small one with low memory and few pins available!
  
 +<class warning>
 +**We also have a shield version of this display that is pre-wired for use with an Arduino. ​ Just solder in the headers and you are ready to go!**
 +</​class>​
  
  
Line 22: Line 25:
  
 There are two ways to wire up these displays - one is a more flexible method (you can use any pins on the Arduino) and the other is much faster (4-8x faster, but you are required to use the hardware SPI pins) We will begin by showing how to use the more flexible method. ​ There are two ways to wire up these displays - one is a more flexible method (you can use any pins on the Arduino) and the other is much faster (4-8x faster, but you are required to use the hardware SPI pins) We will begin by showing how to use the more flexible method. ​
 +
 +<class warning>
 +** The shield version is pre-wired for hardware SPI.  Once you have soldered in the headers, you can skip the wiring instructions and proceed to the "​Graphics Library"​ section for the library code and examples **
 +</​class>​
  
 [[http://​www.ladyada.net/​images/​18tftbreakout/​18tftback.jpg|{{ ​ http://​www.ladyada.net/​images/​18tftbreakout/​18tftback_t.jpg?​nolink&​500x385 ​ |}}]] [[http://​www.ladyada.net/​images/​18tftbreakout/​18tftback.jpg|{{ ​ http://​www.ladyada.net/​images/​18tftbreakout/​18tftback_t.jpg?​nolink&​500x385 ​ |}}]]
Line 128: Line 135:
 ==== Graphics Library ​ ==== ==== Graphics Library ​ ====
  
- +We've written a full graphics library specifically for this display which will get you up and running quickly. The code is written in C/C++ for Arduino but is easy to port to any microcontroller by rewritting the low level pin access functions.
-We've written a full graphics library specifically for this display which will get you up and running quickly. The code is written in C/C++ for Arduino but is easy to port to any microcontroller by rewritting the low level pin access functions. ​Here are some of the functions we've included in the library+
  
 The TFT LCD library is based off of the Adafruit GFX graphics core library. GFX has many ready to go functions that should help you start out with your project. Its not exhaustive and we'll try to update it if we find a really useful function. Right now it supports pixels, lines, rectangles, circles, round-rects,​ triangles and printing text as well as rotation. The TFT LCD library is based off of the Adafruit GFX graphics core library. GFX has many ready to go functions that should help you start out with your project. Its not exhaustive and we'll try to update it if we find a really useful function. Right now it supports pixels, lines, rectangles, circles, round-rects,​ triangles and printing text as well as rotation.
 +
 +__Two__ libraries need to be downloaded and installed: first is the [[https://​github.com/​adafruit/​Adafruit-ST7735-Library|ST7735 library]] (this contains the low-level code specific to this device), and second is the [[https://​github.com/​adafruit/​Adafruit-GFX-Library|Adafruit GFX Library]] (which handles graphics operations common to many displays we carry). Download both ZIP files, uncompress and rename the folders to '​Adafruit_ST7735'​ and '​Adafruit_GFX'​ respectively,​ place them inside your Arduino libraries folder and restart the Arduino IDE. If this is all unfamiliar, we have a [[http://​www.ladyada.net/​library/​arduino/​libraries.html|tutorial introducing Arduino library concepts and installation]].
  
 [[http://​www.ladyada.net/​images/​18tftbreakout/​st7735squares.jpg|{{ ​ http://​www.ladyada.net/​images/​18tftbreakout/​st7735squares_t.jpg?​nolink&​500x309 ​ |}}]] [[http://​www.ladyada.net/​images/​18tftbreakout/​st7735squares.jpg|{{ ​ http://​www.ladyada.net/​images/​18tftbreakout/​st7735squares_t.jpg?​nolink&​500x309 ​ |}}]]
Line 165: Line 173:
 ==== Download ​ ==== ==== Download ​ ====
  
 +[[https://​github.com/​adafruit/​Adafruit-GFX-Library|Adafruit GFX library]]. \\
 +[[https://​github.com/​adafruit/​Adafruit-ST7735-Library|Adafruit ST7735 library]]. \\
 +([[http://​www.ladyada.net/​library/​arduino/​libraries.html|See our detailed tutorial for installation assistance.]])
  
-[[https://​github.com/​adafruit/​Adafruit-ST7735-Library|You can download our Arduino library with examples from github]]. To install itrename ​the downloaded and uncompressed library to **Adafruit_ST7735** and place in the sketchfolder/​libraries folder. [[http://​www.ladyada.net/​library/​arduino/​libraries.html|See our detailed tutorial for more info.]] +For shield userssee the "​shieldtest.pde"​ example ​in the ST7735 ​library.
- +
  
 You may also be interested in the [[http://​www.adafruit.com/​datasheets/​JD-T1800.pdf|datasheet for the display]], and [[http://​www.adafruit.com/​datasheets/​ST7735R_V0.2.pdf|display driver chip]] You may also be interested in the [[http://​www.adafruit.com/​datasheets/​JD-T1800.pdf|datasheet for the display]], and [[http://​www.adafruit.com/​datasheets/​ST7735R_V0.2.pdf|display driver chip]]
  
  
/home/ladyada/public_html/wiki/data/attic/tutorials/products/18tftbreakout/index.html.1335293235.txt.gz · Last modified: 2016/01/28 18:05 (external edit)