2.4 inch TFT LCD overwriting text on lcd

hi friends
i have recently bought a " mcufriend 2.4 inch TFT LCD " working with arduino uno

i have initialized the LCD and ran some codes on it too

but my problem is that when i try to write a value from a sensor and command the LCD to write it on LCD
it overwrites the text ;
like for example : 1 comes over 2 and so on....

i have tried printing space { tft.print(" ") } too
but it didnt work

i used this structure

  1. tft.setCursor(50,50);
  2. tft.print(" ");
  3. tft.setCursor(50,50);
    4.tft.print("mytext");

it didnt work eigther !! even i tried ( tft.println() ) too
it still doent work

what should i do ??
i really need your advises

THANK YOU SO MUCH

The plain setTextColor() prints transparently.

You need to use the full-fat version: tft.setTextColor(letter_color, background_color)

THANK YOU SO MUCH

that totally worked :slight_smile: