I have been searching around the internet for code to clear my screen inside a simple text sketch on my TFT 2.8 display.

I have searched high and low and only found ways to clear a LCD which is obviously completely different from the TFT... lcd.clear(); did not work even with the library loaded. ClearScreen(); has not worked at all for me even though I read different ways to type it out so it actually complies but when I run it the text from the screen does not clear.

I guess what I am asking is if there is a "command" within the TFT. library that I can use to clear the screen so I can write again? I was going to just re DigitalWrite all the text in black with no delay to cover it back up to black which would be like a fake clear screen but I said to myself there has to be an easier way.

error "'class TFT' has no member named 'ClearScreen'" when I try Tft.ClearScreen(BLACK)

display.clearDisplay(); // clears the screen and buffer gives me display is not declared in this scope... so this is probably my error now instead of the library error.... display.clearDisplay(); seems to be doing something but not yet

I searched through the code in the sketches of all the TFT examples and none use any clear screen command.

Get the Adafruit_SSD1306 library and run the ssd1306_128x64_spi or the ssd1306_128x64_i2c example sketch, I think that is what you are missing.

So I got the Adafruit_SSD1306 library and installed it, made sure to #include the two ( #include <Adafruit_GFX.h>, #include <Adafruit_SSD1306.h>)

I loaded the ssd1306_128x64_spi example up and saw the "display.clearDisplay(); " command in there so i figured since I have the library installed and its included now I should have access to that command? But I still get.. error: 'display' was not declared in this scope

And whats funny on top of it when I open up the ssd1306_128x64_spi amd try to just verify it I get an error "ssd1306_128x64_spi:335: error: 'class Adafruit_SSD1306' has no member named 'println'" even though its their example.

#ifdef 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 #endif

#ifdef MEGA #define YP A2 // must be an analog pin, use "An" notation! #define XM A1 // must be an analog pin, use "An" notation! #define YM 54 // can be a digital pin, this is A0 #define XP 57 // can be a digital pin, this is A3 #endif