1.27" OLED, watch, refreshing rate

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
SpyChar
 
Posts: 5
Joined: Tue Dec 23, 2014 9:06 pm

1.27" OLED, watch, refreshing rate

Post by SpyChar »

So I have recently got myself a 1.27" OLED display and I'm struggling, trying to show current time on it. I plan to do more sophisticated things with it but u have to start somewhere I guess.
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);
 	
}

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 1.27" OLED, watch, refreshing rate

Post by adafruit_support_rick »

Try drawing the black square over just the digits that are changing. That will reduce the effect.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”