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

waveshare2in13v2: Deduplicate and simplify logic for sending data #33

Merged
merged 1 commit into from
Dec 10, 2021
Merged

waveshare2in13v2: Deduplicate and simplify logic for sending data #33

merged 1 commit into from
Dec 10, 2021

Conversation

hansmi
Copy link
Contributor

@hansmi hansmi commented Dec 9, 2021

Dev.Clear: Avoid writing one beyond the end of the line. Also build the
row data only once before sending it for each line.

Dev.Draw, Dev.DrawPartial: Deduplicate logic for iterating over pixels
and simplify it such that a whole row of bits is built before sending
them in one go.

Tested using a Waveshare e-Paper 2.13in V2 display.

@maruel
Copy link
Member

maruel commented Dec 10, 2021

Please fix the test failure then I can submit.

Dev.Clear: Avoid writing one beyond the end of the line. Also build the
row data only once before sending it for each line.

Dev.Draw, Dev.DrawPartial: Deduplicate logic for iterating over pixels
and simplify it such that a whole row of bits is built before sending
them in one go.

Tested using a Waveshare e-Paper 2.13in V2 display.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
@hansmi
Copy link
Contributor Author

hansmi commented Dec 10, 2021

@maruel, sorry, missed that. Done.

@maruel maruel merged commit 5b35a3f into periph:main Dec 10, 2021
@hansmi hansmi deleted the wslogic1 branch December 11, 2021 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants