Skip to content

Commit

Permalink
fix for pushcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Apr 30, 2014
1 parent 162103b commit 318bb83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Adafruit_TFTLCD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,11 @@ void Adafruit_TFTLCD::pushColors(uint16_t *data, uint8_t len, boolean first) {
if(first == true) { // Issue GRAM write command only on first call
CD_COMMAND;
if(driver == ID_932X) write8(0x00);
write8(0x22);
if (driver == ID_9341) {
write8(0x2C);
} else {
write8(0x22);
}
}
CD_DATA;
while(len--) {
Expand Down

0 comments on commit 318bb83

Please sign in to comment.