Skip to content

Commit

Permalink
Merge branch 'master' of github.com:adafruit/TFTLCD-Library
Browse files Browse the repository at this point in the history
Conflicts:
	Adafruit_TFTLCD.cpp
  • Loading branch information
ladyada committed Aug 13, 2014
2 parents 87479c7 + 7a983dc commit 9323b5c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Adafruit_TFTLCD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ void Adafruit_TFTLCD::reset(void) {
// Relevant to rect/screen fills and H/V lines. Input coordinates are
// assumed pre-sorted (e.g. x2 >= x1).
void Adafruit_TFTLCD::setAddrWindow(int x1, int y1, int x2, int y2) {

CS_ACTIVE;
if(driver == ID_932X) {

Expand Down Expand Up @@ -676,7 +675,7 @@ void Adafruit_TFTLCD::drawPixel(int16_t x, int16_t y, uint16_t color) {
CD_COMMAND; write8(0x22); CD_DATA; write8(hi); write8(lo);

} else if ((driver == ID_9341) || (driver == ID_HX8357D)) {
setAddrWindow(x, y, TFTWIDTH-1, TFTHEIGHT-1);
setAddrWindow(x, y, _width-1, _height-1);
CS_ACTIVE;
CD_COMMAND;
write8(0x2C);
Expand Down
5 changes: 3 additions & 2 deletions examples/tftbmp/tftbmp.pde
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// BMP-loading example specifically for the TFTLCD breakout board.
// If using the Arduino shield, use the tftbmp_shield.pde sketch instead!
// If using an Arduino Mega, make sure the SD library is configured for
// 'soft' SPI in the file Sd2Card.h.
// If using an Arduino Mega make sure to use its hardware SPI pins, OR make
// sure the SD library is configured for 'soft' SPI in the file Sd2Card.h.

#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_TFTLCD.h> // Hardware-specific library
#include <SD.h>
#include <SPI.h>

// The control pins for the LCD can be assigned to any digital or
// analog pins...but we'll use the analog pins as this allows us to
Expand Down
5 changes: 3 additions & 2 deletions examples/tftbmp_shield/tftbmp_shield.pde
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// BMP-loading example specifically for the TFTLCD Arduino shield.
// If using the breakout board, use the tftbmp.pde sketch instead!
// If using an Arduino Mega, make sure the SD library is configured for
// 'soft' SPI in the file Sd2Card.h.
// If using an Arduino Mega and your sheild does not use the ICSP header for
// SPI, make sure the SD library is configured for 'soft' SPI in the file Sd2Card.h.
// If in doubt, update the library to use 'soft' SPI.

#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_TFTLCD.h> // Hardware-specific library
Expand Down

0 comments on commit 9323b5c

Please sign in to comment.