Clear TFT Display

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ADAD_d
 
Posts: 50
Joined: Thu Oct 05, 2017 9:57 pm

Clear TFT Display

Post by ADAD_d »

Hi there,

I am using the 1.44 Inch TFT display from Adafruit and I was wondering if there was any way to clear a display without using the fillScreen method?

Thanks.

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clear TFT Display

Post by adafruit_support_carter »

I think that's it for the GFX library:
https://learn.adafruit.com/adafruit-gfx ... the-screen
You might be able to use something from the lower level ST7735 library:
https://github.com/adafruit/Adafruit-ST7735-Library
But why do you have an issue using fillScreen?

User avatar
ADAD_d
 
Posts: 50
Joined: Thu Oct 05, 2017 9:57 pm

Re: Clear TFT Display

Post by ADAD_d »

That function is too slow. I need to rapidly update the screen.

User avatar
adafruit_support_carter
 
Posts: 29457
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clear TFT Display

Post by adafruit_support_carter »

Try taking a look at how this is done in this project:
https://learn.adafruit.com/animated-ele ... 1/software

There's a lot to it, but it does show how it's at least possible.

User avatar
seckindogan
 
Posts: 2
Joined: Fri Oct 12, 2018 4:46 am

Re: Clear TFT Display

Post by seckindogan »

ddesousa wrote:That function is too slow. I need to rapidly update the screen.
I have the same issue. Did you find a solution ?

Or does anyone knows is there a something like like tft.clear(); ?

User avatar
seckindogan
 
Posts: 2
Joined: Fri Oct 12, 2018 4:46 am

Re: Clear TFT Display

Post by seckindogan »

I found a solution here ; https://github.com/adafruit/Adafruit-GF ... /issues/16

Simply write tft.setTextColor(ST7735_RED, ST7735_BLACK); before the tft.print.

Code: Select all

 tft.setTextColor(ST7735_RED, ST7735_BLACK);
 tft.setTextSize(2);
 tft.setCursor(10,50);
 tft.print(t);

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”