I am trying to display the temperature of the environment using the 1.33" display and whenever the temperature changes I am refreshing the whole screen which kinda visible. Is there a way I can just refresh the temperature value part and not the whole screen. Below is my code snippet:
Code: Select all
tft.fillScreen(ST77XX_BLACK);
tft.setTextColor(ST77XX_WHITE);
tft.setCursor(0, 0);
tft.setTextSize(5);
tft.println("Temp");
tft.setTextSize(2);
tft.println(" ");
tft.setTextSize(6);
tft.println(tempvalue);
tft.setTextSize(1);
tft.println(" ");
tft.setTextSize(4);
tft.println("F");