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

Clear the framebuffer in mipi_display_init() #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SebKuzminsky
Copy link
Contributor

This initializes the display controller's internal frame buffer to all black before turning the display itself on, to avoid initially displaying random pixels.

I'm not sure that the way I fixed it in this PR is the best way, I'm open to feedback and suggestions.

To demonstrate what I mean, here are two slow-mo videos of the pico_effects firmware. The first one shows the current behavior (hagl_pico_mipi master branch, commit a3abacd), note that the display shows two different "noise" screens at startup, before the demo starts:

without-clear.mp4

The first noise screen is due to hagl_hal not clearing the display's frame buffer before turning the display on. This PR fixes that. The second noise screen is is from pico_effects itself, i'm not going to worry about that ;-)

with-clear.mp4

This initializes the display controller's internal frame buffer to all
black before turning the display itself on, to avoid initially displaying
random pixels.
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

Successfully merging this pull request may close these issues.

None yet

1 participant