You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application where I display a screen with multiple values and their titles.
When I first display the screen everything is fine.
But when I update just one changed value (not clearing the screen), the updated value is merged on top of the old value.
It appears that the characters being printed are OR'd on top of current pixels, rather than replacing.
I am using the display.printf(0, 10, "Title: %-15s", mytitle); function. Works fine when I first clear the display.
Does not work on second update call (without clearing display) with a new title value. Result is illegible.
I only want to update the value that changed without re-printing the entire screen.
Thanks,
Marty
The text was updated successfully, but these errors were encountered:
Hi @martyphelan,
I stumbled upon the same problem. Two years later this might not be helpful for you, but maybe for others. I kind of solved it by using this hacky solution. In the oled.h I moved the functions ToRow, ToCol, ToX, ToY in the public section and added a function in my code, that draws a black rectangular before printing the line:
Note: this is a hacky solution. I'm using a SH1106 display with a line length of 22 columns. @durydevelop a similar function to clear a line would be quite useful. Otherwise thanks for the lib!
I have an application where I display a screen with multiple values and their titles.
When I first display the screen everything is fine.
But when I update just one changed value (not clearing the screen), the updated value is merged on top of the old value.
It appears that the characters being printed are OR'd on top of current pixels, rather than replacing.
I am using the display.printf(0, 10, "Title: %-15s", mytitle); function. Works fine when I first clear the display.
Does not work on second update call (without clearing display) with a new title value. Result is illegible.
I only want to update the value that changed without re-printing the entire screen.
Thanks,
Marty
The text was updated successfully, but these errors were encountered: