This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:products:22tftbreakout:index.html [2012/05/06 01:41] pburgess [Flexible Wiring] |
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) | ||
Line 106: | 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 165: | 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]] |