Go Down

Topic: 2.8" TFT Touch Shield (Read 2150 times) previous topic - next topic

GekoCH

Hy

I just got the new 2.8 TFT Touch Shield from SeeedStudio:
http://www.seeedstudio.com/depot/28-tft-touch-shield-p-864.html?cPath=132_134
First I used the sketch below which worked great. Then I added a few Rectangles and
more circles but suddenly the Screen stayed white even after disconnecting from the Arduino
and reattaching.

I then just tried the example sketch but the Display stays white....
I tried several things but still it won't change anything... Is the Display already dead?



// Draw Circles - Demonstrate drawCircle and fillCircle APIs

#include <stdint.h>
#include <TouchScreen.h>
#include <TFT.h>
#define SEEEDUINO

#define YP A2   // must be an analog pin, use "An" notation!
#define XM A1   // must be an analog pin, use "An" notation!
#define YM 14   // can be a digital pin, this is A0
#define XP 17   // can be a digital pin, this is A3


void setup()
{
  Serial.begin(19200);

  Tft.init();  //init TFT



  Tft.drawCircle(100, 100, 30,YELLOW);
  Tft.drawCircle(100, 200, 40,CYAN);
  Tft.fillCircle(200, 100, 30,RED);
  Tft.fillCircle(200, 200, 30,BLUE);
}

void loop()
{

}

TheKid

I know what you mean. Actually that just means that one of your shapes' edges are out of bounds. Try displaying your shapes inside the screen borders.
Chocolate is good.

Go Up