-
Notifications
You must be signed in to change notification settings - Fork 140
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 Epd2in13b v4 #145
Conversation
a8dd555
to
8e478b8
Compare
fn test_tricolor_bitmask() { | ||
assert_eq!( | ||
TriColor::Black.bitmask(false, 0), | ||
(0b01111111, u16::from_le_bytes([0b00000000, 0b00000000])) |
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.
using LE here so that it's bw buffer and then chromatic buffer
e11f17f
to
43b887c
Compare
Hey @tommy-gilligan thanks for the work you did here. I just have a quick question. Does this code also work for waveshare 2in13 v4 (the black and white version)? Because I see there is not support for that particular device in edp-waveshare. |
The EPD that I have is black/white/red. This works for that but it sounds like you have black/white only? I'm not sure if it works for that but worth giving it a try IMHO. |
Amalgamation of waveshare/e-Paper code, datasheet PDF reference code and existing 2in13v2 driver
I saw #138 . I'm not too sure whether V4 makes sense as a separate driver or not. I did try getting V2 driver working with V4 display with as few as changes as possible. As far as I can tell, there are a few more changes involved for V3->V4 than there is V2->V3 but it doesn't rule out a shared driver.
I added some tests to help me understand TriColor better (but I don't know if they're super necessary).