Hi, I’m trying to write value to the LCD from a sensor, the new value is written over the number that was there before making the whole thing a mess. I tried to print blank spaces but it doesn’t work, also tried changing text colour but no success.
I have enclosed a test code, what am I doing wrong?
#include"TFT_eSPI.h" //include TFT LCD library
TFT_eSPI tft; //initialize TFT LCD
void setup() {
tft.begin(); //start TFT LCD
tft.setRotation(3); //set screen rotation
tft.fillScreen(TFT_WHITE); //fill background
tft.setTextColor(TFT_BLACK); //set text color
tft.setTextSize(2); //set text size
}
void loop() {
tft.drawString(“TEST”, 100, 100); //draw text string
delay(3000);
tft.drawString(" ", 100, 100); //draw text string
delay(3000);
}