uOLED-128-G1 Flicker
I am displaying various icons on the uOLED display (these are drawn using lines, rectangles, etc).
The problem is, in order to hide and show the appropriate icons (to indicate device status) I am erasing the screen every 1 seconds and then re-drawing everything.
However this causes the display to flicker (only slightly, but enough that it looks unprofessional).
Would be nice if there was a way to lock the display, do the drawing routines and then unlock it. So it all gets drawn at once.
Does anyone have any thoughts or recommendations on how I might remove or reduce the flickering? I had thought of re-drawing 25 times per seconds, but haven't tried this yet.
Thanks
P.S I am using the uOLED-128-GM1 driver from obex.
The problem is, in order to hide and show the appropriate icons (to indicate device status) I am erasing the screen every 1 seconds and then re-drawing everything.
However this causes the display to flicker (only slightly, but enough that it looks unprofessional).
Would be nice if there was a way to lock the display, do the drawing routines and then unlock it. So it all gets drawn at once.
Does anyone have any thoughts or recommendations on how I might remove or reduce the flickering? I had thought of re-drawing 25 times per seconds, but haven't tried this yet.
Thanks

P.S I am using the uOLED-128-GM1 driver from obex.
Comments
In my experience, to way to minimize flicker like you discribe is to only redraw the area of the screen you want to change. You could erase the old icon by drawing the same shape with the background color or draw a box over the area where the icon was with the background color.
Looks like that's what I'm going to have to do.