2.4 TFT LCD SHIELD Programmieren

Hallo zusammen,

Ich habe mir neulich ein 2.4 TFT LCD Shield bestellt und wollte dieses nun in Betrieb nehmen, leider stellt sich dies jedoch als deutlich schwerer heraus als angenommen. Bei mir erscheint bis jetzt nur ein weißes Bild. Ich finde auch leider keine richtige Library für das Shield.

Wenn mir jemand weiterhelfen könnte, wäre das sehr nett. Danke !

Es handelt sich dabei genau um dieses Shield: Dort auch beschrieben:

Die verlinkte Seite ist gut beschrieben. Librarys sind auch vorhanden...

Wo ist dein Test-Sketch?
Welches Board verwendest du?

Genau eigentlich ist das dort auch gut beschrieben. Ich habe mir dort mal die TFTLCD und die Libraries heruntergeladen. Ich kann eine davon auch kompilieren, mein Touchscreen Shield zeigt dann aber eher eine buten Pixel Staubwolke an…

#define LCD_CS A3    
#define LCD_CD A2    
#define LCD_WR A1   
#define LCD_RD A0    
// you can also just connect RESET to the arduino RESET pin
#define LCD_RESET A4
//Duemilanove/Diecimila/UNO/etc ('168 and '328 chips) microcontoller:
// Color definitions
#define BLACK           0x0000
#define BLUE            0x001F
#define RED             0xF800
#define GREEN           0x07E0
#define CYAN            0x07FF
#define MAGENTA         0xF81F
#define YELLOW          0xFFE0 
#define WHITE           0xFFFF

#include "TFTLCD.h"

TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);

void setup(void) {
  Serial.begin(9600);
  Serial.println("8 Bit LCD test!");
  
  
  tft.reset();
  

  tft.initDisplay();
  
  testtext(RED);
  delay(2000);
  testlines(CYAN);
  delay(500);
  testfastlines(RED, BLUE);
  delay(500);
  testdrawrects(GREEN);
  delay(500);
  testfillrects(YELLOW, MAGENTA);
  delay(500);
  tft.fillScreen(BLACK);
  testfillcircles(10, MAGENTA);
  testdrawcircles(10, WHITE);
  delay(500); 
  testtriangles();
  delay(500); 
  testfilltriangles();
  delay(500); 
  testRoundRect();
  delay(500); 
  testFillRoundRect();
}

void loop(void) {
  for (uint8_t rotation=0; rotation<4; rotation++) {
    tft.setRotation(rotation); 
    testtext(RED);
    delay(1000);
  }
}



void testFillRoundRect() {
  tft.fillScreen(BLACK);
  
  for (uint16_t x=tft.width(); x > 20 ; x-=6) {
    tft.fillRoundRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, x/8,  tft.Color565(0, x, 0));
 }
}

void testRoundRect() {
  tft.fillScreen(BLACK);
  
  for (uint16_t x=0; x < tft.width(); x+=6) {
    tft.drawRoundRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, x/8, tft.Color565(x, 0, 0));
 }
}

void testtriangles() {
  tft.fillScreen(BLACK);
  for (uint16_t i=0; i<tft.width()/2; i+=5) {
    tft.drawTriangle(tft.width()/2, tft.height()/2-i,
                     tft.width()/2-i, tft.height()/2+i,
                     tft.width()/2+i, tft.height()/2+i, tft.Color565(0, 0, i));
  }
}

void testfilltriangles() {
  tft.fillScreen(BLACK);
  
  for (uint16_t i=tft.width()/2; i>10; i-=5) {
    tft.fillTriangle(tft.width()/2, tft.height()/2-i,
                     tft.width()/2-i, tft.height()/2+i,
                     tft.width()/2+i, tft.height()/2+i, 
                     tft.Color565(0, i, i));
    tft.drawTriangle(tft.width()/2, tft.height()/2-i,
                     tft.width()/2-i, tft.height()/2+i,
                     tft.width()/2+i, tft.height()/2+i, tft.Color565(i, i, 0));    
  }
}
void testtext(uint16_t color) {
  tft.fillScreen(BLACK);
  tft.setCursor(0, 20);
  tft.setTextColor(color);
  tft.setTextSize(1);
  tft.println("Hello World!");
  tft.setTextSize(2);
  tft.println(1234.56);
  tft.setTextSize(3);
  tft.println(0xDEADBEEF, HEX);
}

void testfillcircles(uint8_t radius, uint16_t color) {
  for (uint16_t x=radius; x < tft.width(); x+=radius*2) {
    for (uint16_t y=radius; y < tft.height(); y+=radius*2) {
      tft.fillCircle(x, y, radius, color);
    }
  }  
}

void testdrawcircles(uint8_t radius, uint16_t color) {
  for (uint16_t x=0; x < tft.width()+radius; x+=radius*2) {
    for (uint16_t y=0; y < tft.height()+radius; y+=radius*2) {
      tft.drawCircle(x, y, radius, color);
    }
  }  
}


void testfillrects(uint16_t color1, uint16_t color2) {
 tft.fillScreen(BLACK);
 for (uint16_t x=tft.width()-1; x > 6; x-=6) {
   //Serial.println(x, DEC);
   tft.fillRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color1);
   tft.drawRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color2);
 }
}

void testdrawrects(uint16_t color) {
 tft.fillScreen(BLACK);
 for (uint16_t x=0; x < tft.width(); x+=6) {
   tft.drawRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color);
 }
}

void testfastlines(uint16_t color1, uint16_t color2) {
   tft.fillScreen(BLACK);
   for (uint16_t y=0; y < tft.height(); y+=5) {
     tft.drawHorizontalLine(0, y, tft.width(), color1);
   }
   for (uint16_t x=0; x < tft.width(); x+=5) {
     tft.drawVerticalLine(x, 0, tft.height(), color2);
   }
  
}

void testlines(uint16_t color) {
   tft.fillScreen(BLACK);
   for (uint16_t x=0; x < tft.width(); x+=6) {
     tft.drawLine(0, 0, x, tft.height()-1, color);
   }
   for (uint16_t y=0; y < tft.height(); y+=6) {
     tft.drawLine(0, 0, tft.width()-1, y, color);
   }
   
   tft.fillScreen(BLACK);
   for (uint16_t x=0; x < tft.width(); x+=6) {
     tft.drawLine(tft.width()-1, 0, x, tft.height()-1, color);
   }
   for (uint16_t y=0; y < tft.height(); y+=6) {
     tft.drawLine(tft.width()-1, 0, 0, y, color);
   }
   
   tft.fillScreen(BLACK);
   for (uint16_t x=0; x < tft.width(); x+=6) {
     tft.drawLine(0, tft.height()-1, x, 0, color);
   }
   for (uint16_t y=0; y < tft.height(); y+=6) {
     tft.drawLine(0, tft.height()-1, tft.width()-1, y, color);
   }

   tft.fillScreen(BLACK);
   for (uint16_t x=0; x < tft.width(); x+=6) {
     tft.drawLine(tft.width()-1, tft.height()-1, x, 0, color);
   }
   for (uint16_t y=0; y < tft.height(); y+=6) {
     tft.drawLine(tft.width()-1, tft.height()-1, 0, y, color);
   }
}


void testBars() {
  uint16_t i,j;
  for(i=0; i < tft.height(); i++)
  {
    for(j=0; j < tft.width(); j++)
    {
      if(i>279) tft.writeData(WHITE);
      else if(i>239) tft.writeData(BLUE);
      else if(i>199) tft.writeData(GREEN);
      else if(i>159) tft.writeData(CYAN);
      else if(i>119) tft.writeData(RED);
      else if(i>79) tft.writeData(MAGENTA);
      else if(i>39) tft.writeData(YELLOW);
      else tft.writeData(BLACK);
    }
  }
}

Dann gehts weiter, ich wollte eigentlich auch noch die paint Funktion ausführen:

#include "TFTLCD.h"
#include "TouchScreen.h"


//Duemilanove/Diecimila/UNO/etc ('168 and '328 chips) microcontoller:



#define YP A1  // must be an analog pin, use "An" notation!
#define XM A2  // must be an analog pin, use "An" notation!
#define YM 7   // can be a digital pin
#define XP 6   // can be a digital pin

#define TS_MINX 150
#define TS_MINY 120
#define TS_MAXX 920
#define TS_MAXY 940

// For better pressure precision, we need to know the resistance
// between X+ and X- Use any multimeter to read it
// For the one we're using, its 300 ohms across the X plate
TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);

#define LCD_CS A3
#define LCD_CD A2
#define LCD_WR A1
#define LCD_RD A0 
// optional
#define LCD_RESET A4

// Color definitions
#define BLACK           0x0000
#define BLUE            0x001F
#define RED             0xF800
#define GREEN           0x07E0
#define CYAN            0x07FF
#define MAGENTA         0xF81F
#define YELLOW          0xFFE0 
#define WHITE           0xFFFF



TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);

#define BOXSIZE 40
#define PENRADIUS 3
int oldcolor, currentcolor;

void setup(void) {
  Serial.begin(9600);
  Serial.println("Paint!");
  
  tft.reset();
  
  /*
  uint16_t identifier = tft.readRegister(0x0);
  if (identifier == 0x9325) {
    Serial.println("Found ILI9325");
  } else if (identifier == 0x9328) {
    Serial.println("Found ILI9328");
  } else {
    Serial.print("Unknown driver chip ");
    Serial.println(identifier, HEX);
    while (1);
  }
*/
  tft.initDisplay(); 
  tft.fillScreen(BLACK);
  
  tft.fillRect(0, 0, BOXSIZE, BOXSIZE, RED);
  tft.fillRect(BOXSIZE, 0, BOXSIZE, BOXSIZE, YELLOW);
  tft.fillRect(BOXSIZE*2, 0, BOXSIZE, BOXSIZE, GREEN);
  tft.fillRect(BOXSIZE*3, 0, BOXSIZE, BOXSIZE, CYAN);
  tft.fillRect(BOXSIZE*4, 0, BOXSIZE, BOXSIZE, BLUE);
  tft.fillRect(BOXSIZE*5, 0, BOXSIZE, BOXSIZE, MAGENTA);
 // tft.fillRect(BOXSIZE*6, 0, BOXSIZE, BOXSIZE, WHITE);
 
 tft.drawRect(0, 0, BOXSIZE, BOXSIZE, WHITE);
 currentcolor = RED;
 
  pinMode(13, OUTPUT);
}



#define MINPRESSURE 10
#define MAXPRESSURE 1000



void loop()
{
  digitalWrite(13, HIGH);
  Point p = ts.getPoint();
  digitalWrite(13, LOW);


  pinMode(XM, OUTPUT);
  pinMode(YP, OUTPUT);
  //pinMode(YM, OUTPUT);

  // we have some minimum pressure we consider 'valid'
  // pressure of 0 means no pressing!

  if (p.z > MINPRESSURE && p.z < MAXPRESSURE) {

    
    if (p.y < (TS_MINY-5)) {
      Serial.println("erase");
     // press the bottom of the screen to erase 
      tft.fillRect(0, BOXSIZE, tft.width(), tft.height()-BOXSIZE, BLACK);
      
    }
    // turn from 0->1023 to tft.width
    p.x = map(p.x, TS_MINX, TS_MAXX, 0, tft.width());
    p.y = map(p.y, TS_MINY, TS_MAXY, 0, tft.height());

    if (p.y < BOXSIZE) {
       oldcolor = currentcolor;
 
  
       if (p.x < BOXSIZE) { 
         currentcolor = RED; 
         tft.drawRect(0, 0, BOXSIZE, BOXSIZE, WHITE);
       } 
       else if (p.x < BOXSIZE*2) {
         currentcolor = YELLOW; 
         tft.drawRect(BOXSIZE, 0, BOXSIZE, BOXSIZE, WHITE);
       }
       else if (p.x < BOXSIZE*3) {
         currentcolor = GREEN; 
         tft.drawRect(BOXSIZE*2, 0, BOXSIZE, BOXSIZE, WHITE);
       }
       else if (p.x < BOXSIZE*4) {
         currentcolor = CYAN; 
         tft.drawRect(BOXSIZE*3, 0, BOXSIZE, BOXSIZE, WHITE);
       }
       else if (p.x < BOXSIZE*5) {
         currentcolor = BLUE; 
         tft.drawRect(BOXSIZE*4, 0, BOXSIZE, BOXSIZE, WHITE);
       }
       else if (p.x < BOXSIZE*6) {
         currentcolor = MAGENTA; 
         tft.drawRect(BOXSIZE*5, 0, BOXSIZE, BOXSIZE, WHITE);
       }
       
       if (oldcolor != currentcolor) {
          if (oldcolor == RED) tft.fillRect(0, 0, BOXSIZE, BOXSIZE, RED);
          if (oldcolor == YELLOW) tft.fillRect(BOXSIZE, 0, BOXSIZE, BOXSIZE, YELLOW);
          if (oldcolor == GREEN) tft.fillRect(BOXSIZE*2, 0, BOXSIZE, BOXSIZE, GREEN);
          if (oldcolor == CYAN) tft.fillRect(BOXSIZE*3, 0, BOXSIZE, BOXSIZE, CYAN);
          if (oldcolor == BLUE) tft.fillRect(BOXSIZE*4, 0, BOXSIZE, BOXSIZE, BLUE);
          if (oldcolor == MAGENTA) tft.fillRect(BOXSIZE*5, 0, BOXSIZE, BOXSIZE, MAGENTA);
       }
    }
    if (((p.y-PENRADIUS) > BOXSIZE) && ((p.y+PENRADIUS) < tft.height())) {
      tft.fillCircle(p.x, p.y, PENRADIUS, currentcolor);
    }
  }
}

Hierbei kommt jedoch immer folgender Fehler:

tftpaint.ino: In function 'void loop()':

tftpaint:94: error: ‘Point’ was not declared in this scope
tftpaint:94: error: expected `;’ before ‘p’
tftpaint:105: error: ‘p’ was not declared in this scope

Ich hoffe, ihr könnt mir weiterhelfen, danke.

Welches Board?

Ich nutze ein Arduino UNO von Funduino, das Board gab es mit einem Lernset von Arduino

Lade dir mal die Library runter:

Dann lade das Example "graphicstest" auf den Arduino und Poste die Debug Ausgabe.

Ich hab die Datei mal heruntergeladen und im Ordner Libraries entpackt.

Meiner Einschätzung nach fehlt aber die “#include <Adafruit_GFX.h> // Core graphics library”

So kommt es schon zu einem Fehler beim kompilieren:

[quote]









In file included from graphicstest.pde:6:
C:\Program Files\arduino-1.0.6-windows\arduino-1.0.6\libraries\TFTLCD-Library-master/Adafruit_TFTLCD.h:22: error: expected class-name before '{' token
graphicstest.pde: In function 'void setup()':
graphicstest:56: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:56: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest.pde: In function 'long unsigned int testText()':
graphicstest:159: error: 'class Adafruit_TFTLCD' has no member named 'setCursor'
graphicstest:160: error: 'class Adafruit_TFTLCD' has no member named 'setTextColor'
graphicstest:160: error: 'class Adafruit_TFTLCD' has no member named 'setTextSize'
graphicstest:161: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:162: error: 'class Adafruit_TFTLCD' has no member named 'setTextColor'
graphicstest:162: error: 'class Adafruit_TFTLCD' has no member named 'setTextSize'
graphicstest:163: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:164: error: 'class Adafruit_TFTLCD' has no member named 'setTextColor'
graphicstest:164: error: 'class Adafruit_TFTLCD' has no member named 'setTextSize'
graphicstest:165: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:166: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:167: error: 'class Adafruit_TFTLCD' has no member named 'setTextColor'
graphicstest:168: error: 'class Adafruit_TFTLCD' has no member named 'setTextSize'
graphicstest:169: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:170: error: 'class Adafruit_TFTLCD' has no member named 'setTextSize'
graphicstest:171: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:172: error: 'class Adafruit_TFTLCD' has no member named 'setTextSize'
graphicstest:173: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:174: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:175: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:176: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:177: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:178: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest:179: error: 'class Adafruit_TFTLCD' has no member named 'println'
graphicstest.pde: In function 'long unsigned int testLines(uint16_t)':
graphicstest:186: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:187: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:194: error: 'class Adafruit_TFTLCD' has no member named 'drawLine'
graphicstest:196: error: 'class Adafruit_TFTLCD' has no member named 'drawLine'
graphicstest:205: error: 'class Adafruit_TFTLCD' has no member named 'drawLine'
graphicstest:207: error: 'class Adafruit_TFTLCD' has no member named 'drawLine'
graphicstest:216: error: 'class Adafruit_TFTLCD' has no member named 'drawLine'
graphicstest:218: error: 'class Adafruit_TFTLCD' has no member named 'drawLine'
graphicstest:227: error: 'class Adafruit_TFTLCD' has no member named 'drawLine'
graphicstest:229: error: 'class Adafruit_TFTLCD' has no member named 'drawLine'
graphicstest.pde: In function 'long unsigned int testFastLines(uint16_t, uint16_t)':
graphicstest:236: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:236: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest.pde: In function 'long unsigned int testRects(uint16_t)':
graphicstest:249: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:250: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:253: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:253: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:253: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:253: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:257: error: 'class Adafruit_TFTLCD' has no member named 'drawRect'
graphicstest.pde: In function 'long unsigned int testFilledRects(uint16_t, uint16_t)':
graphicstest:266: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:267: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:270: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:270: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:270: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:270: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:277: error: 'class Adafruit_TFTLCD' has no member named 'drawRect'
graphicstest.pde: In function 'long unsigned int testFilledCircles(uint8_t, uint16_t)':
graphicstest:285: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:285: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:291: error: 'class Adafruit_TFTLCD' has no member named 'fillCircle'
graphicstest.pde: In function 'long unsigned int testCircles(uint8_t, uint16_t)':
graphicstest:301: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:302: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:309: error: 'class Adafruit_TFTLCD' has no member named 'drawCircle'
graphicstest.pde: In function 'long unsigned int testTriangles()':
graphicstest:318: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:319: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:325: error: 'class Adafruit_TFTLCD' has no member named 'drawTriangle'
graphicstest.pde: In function 'long unsigned int testFilledTriangles()':
graphicstest:337: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:338: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:344: error: 'class Adafruit_TFTLCD' has no member named 'fillTriangle'
graphicstest:347: error: 'class Adafruit_TFTLCD' has no member named 'drawTriangle'
graphicstest.pde: In function 'long unsigned int testRoundRects()':
graphicstest:357: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:358: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:361: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:361: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:361: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:361: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:365: error: 'class Adafruit_TFTLCD' has no member named 'drawRoundRect'
graphicstest.pde: In function 'long unsigned int testFilledRoundRects()':
graphicstest:374: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:375: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:379: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:379: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:379: error: 'class Adafruit_TFTLCD' has no member named 'width'
graphicstest:379: error: 'class Adafruit_TFTLCD' has no member named 'height'
graphicstest:381: error: 'class Adafruit_TFTLCD' has no member named 'fillRoundRect'
[/quote]

Du musst natürlich alle inkludierten Libs haben...

Editiere mal bitte die ellenlange Fehlerliste weg...

Genau, die hab ich dann eingebunden, das Bild blieb dennoch weiß.

Bei einer anderen ZIP inklusive aller Libraries kam es zu Pixelwolken und flackern, als ich den "graphictest" ausgeführt habe...

Also das Example hast du jetzt drauf geladen?

Wo ist jetzt die Ausgabe vom Debugfenster/Seriellen Monitor?

Das ist die Ausgabe:

TFT LCD test
Using Adafruit 2.8" TFT Breakout Board Pinout
TFT size is 240x320
Unknown LCD driver chip: 0
If using the Adafruit 2.8" TFT Arduino shield, the line:
  #define USE_ADAFRUIT_SHIELD_PINOUT
should appear in the library header (Adafruit_TFT.h).
If using the breakout board, it should NOT be #defined!
Also if using the breakout, double-check that all wiring
matches the tutorial.

Meine Ordner in libraries heißen: Adafruit_GFX und TFTLCD-Library-master

Hm. Die Adafruit Lib erkennt den Chip nicht.

Teste mal das:

Okay, hierbei beginnt das Display zu flackern und bunte kleine Pixel werden dargestellt. Stichwort Pixelwolke.
Sobald ich graphictest starte.

8 Bit LCD test!
Unknown driver chip 0

Wenn ich das Touchscreen Beispiel starte und dann den Screen berühre, kann mir die genaue Position auf dem Serial Monitor angezeigt werden.

Verstehe nicht wo jetzt die Meldung "Unknown driver chip 0" her kommt.
Die ist im Example auskommentiert... Hast du da was geändert?

Hast du mit dem Board schon andere Sachen Ausprobiert? Könnte es sein, dass ein PIN gestorben ist?
Sonst fällt mir nicht mehr viel ein außer, dass das LCD ne Macke hat.

Ich habe mein Display nochmal bei Amazon aufgerufen, dort steht in der Beschreibung, dass folgender Chip verwendet wird:
Spfd5408

http://www.amazon.de/dp/B00Q6WN3PU/ref=pe_386171_37038021_TE_3p_M3T1_dp_2

Ich habe diesen Chip dann mal gegoogelt und binn auf das hier gestoßen:

Dort habe ich mir dann mal die Libs heruntergeladen:

1.I used the SWIFT Library and the Adafruit GFX Library

SWIFT Library by smoke and wires: https://github.com/Smoke-And-Wires/TFT-Shield-Exa...

Smoke and wires lcd tutorial http://www.smokeandwires.co.nz/blog/a-2-4-tft-tou...

  1. Adafruit GFX Library
    AdaFruit GFX Library GitHub - adafruit/Adafruit-GFX-Library: Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from

Zumindest die von gtihub... Aber es ist nach wie vor das selbe Problem, das Display flackert beim graphictest und zeigt mir nur bunte Pixel verteilt über das Display an.

Die zweite Library von mir war schon für den SPFD5408.

Mir fällt hier nichts mehr ein... AUßer dass das Display defekt ist.

Danke dennoch für deine gute Hilfe !
Ich werde mir jetzt zwei neue Displays von der Sorte bestellen, so sollte wenigstens eines davon funktionieren. Hoffentlich. Oder hat jemand eine Display Empfehlung ?