kanflo / opendps

Give your DPS5005 the upgrade it deserves
MIT License
868 stars 126 forks source link

Changing between screens does not clear the previous screen #105

Open Xenoamor opened 5 years ago

Xenoamor commented 5 years ago

Changing between screens with different layouts leaves what was previously drawn on the screen in the background. I could be wrong about this but I believe this would be because we aren't filling the screen with black when we cycle between them

kanflo commented 5 years ago

Ah, I recall that one. Originally it was intentional to reduce flicker when changing between the CV/CC functions as they both drew the same information in the same place.

Xenoamor commented 5 years ago

Hmmm.. you're right. It's not very pretty to look at when it is blanking the screen. We're kind of throttled by the maximum SPI frequency

For what it's worth the original DPS firmware also has this issue although it looks like they render the next screen first and then display it. I wonder if the TFT has a command for blanking it's content. Or it might even be faster to just reset it and re-init it