User Tools

Site Tools


tutorials:products:22tftbreakout: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:22tftbreakout:index.html [2012/05/01 18:54]
daigo [Graphics Library]
tutorials:products:22tftbreakout:index.html [2016/01/28 18:05] (current)
Line 41: Line 41:
  
  
-Hardware SPI means that we have to connect the **CLK** and** MOSI** pins to fixed digital pins. On '328 and '168 Arduinos, **CLK** must connect to digital** 13** and **MOSI **must connect to digital **11**. Digital **10** must also be an output (but doesn'​t need to be connected to any particular pin). We'll use the following pin connections:​+Hardware SPI means that we have to connect the **CLK** and** MOSI** pins to fixed digital pins. On '328 and '168 Arduinos, **CLK** must connect to digital **13** and **MOSI** must connect to digital **11**. ​(If using an Arduino Mega, connect **CLK** to **52** and **MOSI** to **51**.) 
 + 
 + 
 + Digital **10** ​(**53** on Arduino Mega) must also be an output (but doesn'​t need to be connected to any particular pin). We'll use the following pin connections:​
  
  
Line 48: Line 51:
   ***RST** (reset) connects to digtal 9 - yellow wire   ***RST** (reset) connects to digtal 9 - yellow wire
   *Skip **SDCS** (SD card chip select)   *Skip **SDCS** (SD card chip select)
-  ***CS** (chip select) connects to digital 10 - green wire +  ***CS** (chip select) connects to digital 10 (or pin 53 on Arduino Mega) - green wire 
-  ***MOSI **(data out) connects to digital 11 - blue wire +  ***MOSI **(data out) connects to digital 11 (51 on Mega) - blue wire 
-  ***SCK** (clock) connects to digital 13 - purple wire+  ***SCK** (clock) connects to digital 13 (52 on Mega) - purple wire
   *Skip **MISO** (data in)   *Skip **MISO** (data in)
-  *[[http://​www.ladyada.net/​images/​22tftbreakout/​wire.jpg|{{ ​ http://​www.ladyada.net/​images/​22tftbreakout/​wire_t.jpg?​nolink&​500x350 ​ |}}]]+ 
 +[[http://​www.ladyada.net/​images/​22tftbreakout/​wire.jpg|{{ ​ http://​www.ladyada.net/​images/​22tftbreakout/​wire_t.jpg?​nolink&​500x350 ​ |}}]]
  
 You can later change the CS and RST pins but to match the tutorial, use this connection diagram. You can later change the CS and RST pins but to match the tutorial, use this connection diagram.
Line 105: Line 109:
  
 You'll also need an image. [[http://​www.ladyada.net/​images/​22tftbreakout/​rose.bmp|We suggest starting with this bitmap of a rose.]] ​ If you want to later use your own image, use an image editing tool and crop your image to no larger than 160 pixels high and 128 pixels wide. Save it as a 24-bit color **BMP** file - it must be 24-bit color format to work, even if it was originally a 16-bit color image - becaue of the way BMPs are stored and displayed! You'll also need an image. [[http://​www.ladyada.net/​images/​22tftbreakout/​rose.bmp|We suggest starting with this bitmap of a rose.]] ​ If you want to later use your own image, use an image editing tool and crop your image to no larger than 160 pixels high and 128 pixels wide. Save it as a 24-bit color **BMP** file - it must be 24-bit color format to work, even if it was originally a 16-bit color image - becaue of the way BMPs are stored and displayed!
 +
 +
 +Names for bitmap files **must not exceed 8 characters with a 3 character extension**. ​ "​mybitmap.bmp"​ is fine.  "​myotherbitmap.bmp"​ is too long and will not be readable by the SD file system.
  
  
Line 128: Line 135:
 Now load the **bitmap** example sketch into the Arduino. It  should display the parrot image. If you have any problems, check the  serial console for any messages such as not being able to initialize the  microSD card or not finding the image. ​ Now load the **bitmap** example sketch into the Arduino. It  should display the parrot image. If you have any problems, check the  serial console for any messages such as not being able to initialize the  microSD card or not finding the image. ​
  
-{{  http://​www.ladyada.net/​images/​22tftbreakout/​rose.bmp?​nolink ​ |}}+{{http://​www.ladyada.net/​images/​22tftbreakout/​rose.bmp}}
  
 ==== Alternative wiring ​ ==== ==== Alternative wiring ​ ====
Line 164: Line 171:
  
  
-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/​BTL221722-276L.pdf|datasheet for the display]] , and [[http://​www.adafruit.com/​datasheets/​HX8340-B_T__DS_preliminary_v01_080313.pdf|display driver chip]] ​
  
  
/home/ladyada/public_html/wiki/data/attic/tutorials/products/22tftbreakout/index.html.1335898441.txt.gz · Last modified: 2016/01/28 18:05 (external edit)