Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing too soon after asking to switch the displayed frame, results in writing to the ram that is still being displayed #6

Open
datacute opened this issue Jul 6, 2018 · 0 comments

Comments

@datacute
Copy link
Owner

datacute commented Jul 6, 2018

If while a third of the way through displaying the top half of ram, your application has finished updating the second half of ram, and switches over, the display will finish showing the first half of ram before it starts showing the second half of ram. During that time your application might be updating the ram as it is being displayed.
There's no frame vertical sync exposed over I2C, so the only way to reduce the risk is to delay slightly after switching which half gets displayed before writing anything to the display ram.
I'm not going to add a delay in to the code, instead I'll document that your code to update the display should write to ram, then switch the display, rather than the other way around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant