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

Fully clear the screen #18

Merged
merged 1 commit into from
Sep 11, 2022
Merged

Fully clear the screen #18

merged 1 commit into from
Sep 11, 2022

Conversation

Leonti
Copy link
Contributor

@Leonti Leonti commented Sep 11, 2022

Use the full width and height of the screen to clear it.
Currently, when clearing the screen the width and the height are reduced by one, leaving lines on the screen's bottom and right.
Fox example, with ssd1306 with width 128 and height 64 only first 127 and 63 pixels will be cleared.

Not fully sure about the impact on other screens, but this change got rid of artifacts from previous screens on ssd1306.

Use the full width and height of the screen to clear it.
@peterhinch peterhinch merged commit 737dc6d into peterhinch:main Sep 11, 2022
@peterhinch
Copy link
Owner

Thanks for that. I have very occasionally observed this myself.

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.

2 participants