-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Added support for 128x128 size displays #31
base: master
Are you sure you want to change the base?
Conversation
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.
Hey, thanks for the PR! I left a few comments
@@ -27,6 +30,7 @@ impl DisplaySize { | |||
/// Get the panel column offset from DisplaySize | |||
pub fn column_offset(self) -> u8 { | |||
match self { | |||
DisplaySize::Display128x128 => 2, |
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.
Just confirming this is the correct offset
Command::Contrast(0x80).send(&mut self.iface)?; | ||
Command::SegmentRemap(false).send(&mut self.iface)?; | ||
Command::Multiplex(128).send(&mut self.iface)?; | ||
Command::DisplayOffset(0x60).send(&mut self.iface)?; | ||
Command::DisplayClockDiv(0x8, 0x0).send(&mut self.iface)?; |
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.
I don't have hardware to test with on hand at the moment, but I'm concerned these changes will cause regressions for the currently supported display sizes. What are the minimum changes needed to support 128x128 displays?
Hey!
Made some changes to support 128x128 displays and thought I'd merge it back upstream.
Not sure what your explicit PR requirements are, but let me know and I'll be happy to shuffle them in!