Pages: 1 [2]   Go Down
Author Topic: Clear Screen and 2.8TFT  (Read 2032 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
you mean use "Tft.clearDisplay()" instead of using the "display.clearDisplay()"? 
wELL, THAT'S WHAT i'D DO.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
you mean use "Tft.clearDisplay()" instead of using the "display.clearDisplay()"? 
wELL, THAT'S WHAT i'D DO.

wont that negate the whole fact of including the adafruit?

I tried and apparently "class TFT' has no member named 'clearDisplay' ".


im about to just digital write everything over in black with no delay to get over this..I just figured it would have been a bit easier somehow i dont understand what i am doing wrong.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You are the one with the random collection of libraries. You need to go through them and the examples, to see what you can do.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

use

Tft.fillRectangle(0,0,400,400,BLACK);
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
in 2.8" tft from adafruit, for clear screen, you can use this instruction....

tft.fillScreen(ILI9341_WHITE);

you can use this instruction tft.clear(WHITE); but you need change the code in file Adafruit_ILI9341.cpp and Adafruit_ILI9341.h, Adafruit_GFX.cpp and Adafruit_GFX
This files are in libraries form adafruit, you need to download that libraries and put then in libraries from software arduino.

Link for the libraries for 2.8" tft from adafruit : https://learn.adafruit.com/adafruit-2-8-tft-touch-shield-v2/graphics-test.

or you can use the original instruction without change the respective files.

« Last Edit: September 08, 2014, 07:58:24 pm by LICAS » Logged

Pages: 1 [2]   Go Up
Jump to: