Pages: [1]   Go Down
Author Topic: 2.8" TFT Touch Shield  (Read 2025 times)
0 Members and 1 Guest are viewing this topic.
Switzerland
Offline Offline
Sr. Member
****
Karma: 0
Posts: 269
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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()
{

}
Logged

Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Awesomeness
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Chocolate is good.

Pages: [1]   Go Up
Jump to: