0

Clear TFT Display
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Clear TFT Display

by ddesousa on Sun Nov 12, 2017 11:19 pm

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.

ddesousa
 
Posts: 19
Joined: Thu Oct 05, 2017 9:57 pm

Re: Clear TFT Display

by adafruit_support_carter on Tue Nov 14, 2017 1:23 pm

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?

adafruit_support_carter
 
Posts: 6635
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clear TFT Display

by ddesousa on Tue Nov 14, 2017 3:52 pm

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

ddesousa
 
Posts: 19
Joined: Thu Oct 05, 2017 9:57 pm

Re: Clear TFT Display

by adafruit_support_carter on Tue Nov 14, 2017 7:10 pm

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.

adafruit_support_carter
 
Posts: 6635
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clear TFT Display

by seckindogan on Fri Oct 12, 2018 4:48 am

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(); ?

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

Re: Clear TFT Display

by seckindogan on Fri Oct 12, 2018 4:58 am

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 | TOGGLE FULL SIZE
 tft.setTextColor(ST7735_RED, ST7735_BLACK);
 tft.setTextSize(2);
 tft.setCursor(10,50);
 tft.print(t);

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

Please be positive and constructive with your questions and comments.