-
Notifications
You must be signed in to change notification settings - Fork 129
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
Add support for the epd1in54b display #35
Conversation
Codecov Report
@@ Coverage Diff @@
## master #35 +/- ##
==========================================
- Coverage 41.26% 35.74% -5.53%
==========================================
Files 15 18 +3
Lines 853 996 +143
==========================================
+ Hits 352 356 +4
- Misses 501 640 +139
Continue to review full report at Codecov.
|
Looks great on a fast skim. I will make a full review next week, but could you in the meantime please add the new device to the Readme and add a short description/doc comments to the new trait? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment
Added some documentation. Perhaps the trait should be named WaveshareThreeColorDisplay instead as that's the terminology that Waveshare use. |
Then we should use the same terminology so it's easier for people to switch :-) |
I'm not really happy about the Naming is hard :)
|
Trait and method names updated, and code was formatted with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is the src/epd1in54b/graphics.rs working for you?
Would someone use two "display1in54b"s - one for red/color and one for black with the embedded graphics library?
I really like your naming changes! :-)
Graphics works. Yeah exactly like that. Two "displays". I have test code for this that I will clean up and publish as an example in my nucleo-f401re crate. |
Thanks for your work :-) |
This RFC pull request adds support for the 2 color (red and black) display epd1in54b .
To support the two different planes of colored ink I have added a new trait called WaveshareTwoColorDisplay with on method - update_both_planes() for updating both planes at once. The old update_frame() just clears the color-layer when updating the black layer