The problem is a screen flickering when I'm drawing a black square over the old text, in order to write a new one. I have seen a couple of posts about this problem, but no answer that would solve it(for me at least). I'll just post a link to the video I made. It looks just as in this video, only the flickering is more obvious in reality.
http://youtu.be/m2G_pNBZ3_4
and the function i'm using to draw it
Code: Select all
void drawClock(int hours, int minutes, int seconds , uint16_t color){
tft.setCursor(20,40);
tft.setTextSize(3);
tft.setTextColor(color);
delay(500);
//tft.fillScreen(BLACK);
tft.fillRect(20, 40, 108, 30, BLACK);
tft.print(hours);
tft.print(":");
tft.print(minutes);
}