Wenn ich es genau so wie im Link aufbaue mit dem selben Programm wird die Grafik ein paar Pixel versetzt angezeigt. Der gelbe "Pac-man" ist grau und die Farbe Blau wird in Rot angezeigt usw.
Dann passt der Sketch oder die Library nicht zum Display.
Du solltest uns alle Daten liefern.
Einen Hyperlink zu deinem Display. Hyperlink ist zum Anklicken, keine URL.
Deinen Sketch in Code-Tags.
// 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:
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
Auch hervorgehoben: If you are seeing red and green color inversion, use Black Tab
Der Trick ist der mit den "Tabs" - das ist der "Nippel" an der Displayschutzfolie. Passend zu dessen Farbe ent-kommentierst Du wie beschrieben die passende init()-Zeile und kommentierst alle anderen aus.
Ich habe diese Library verwendet und - weil das rote für mein Display die Verschiebung nicht komplett abgestellt hat - lokal bei mir selbst eins dazugefügt (REDTAB2). Thread dazu gibt es hier auch.
Vielleicht hat az mal den Lieferanten gewechselt oder der hat was umgebaut. Das ausgerechnet GREENTAB bei einem Display mit rotem Tab funktionieren soll, kann ich eh' nicht verstehen.