Skip to content

Commit

Permalink
renamed, cleaned up init
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Sep 5, 2014
1 parent 235e999 commit d5857fb
Showing 1 changed file with 2 additions and 14 deletions.
Expand Up @@ -45,23 +45,11 @@ Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
void setup(void) {
Serial.begin(9600);

// Our supplier changed the 1.8" display slightly after Jan 10, 2012
// so that the alignment of the TFT had to be shifted by a few pixels
// this just means the init code is slightly different. Check the
// color of the tab to see which init code to try. If the display is
// cut off or has extra 'random' pixels on the top & left, try the
// other option!
// If you are seeing red and green color inversion, use Black Tab

// If your TFT's plastic wrap has a Black Tab, use the following:
// Initialize 1.8" TFT
tft.initR(INITR_BLACKTAB); // initialize a ST7735S chip, black tab
// If your TFT's plastic wrap has a Red Tab, use the following:
//tft.initR(INITR_REDTAB); // initialize a ST7735R chip, red tab
// If your TFT's plastic wrap has a Green Tab, use the following:
//tft.initR(INITR_GREENTAB); // initialize a ST7735R chip, green tab

Serial.println("OK!");
tft.fillScreen(0x0000);
tft.fillScreen(ST7735_BLACK);
}


Expand Down

0 comments on commit d5857fb

Please sign in to comment.