Flickering OLED

You do not need 3 variables to see what is going on, current and previous would be good enough

Did you understand what I said about erasing text that will never change ?