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

Added support for 128x128 size displays #31

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

JFKingsley
Copy link

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!

Copy link
Collaborator

@jamwaffles jamwaffles left a 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,
Copy link
Collaborator

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

Comment on lines +52 to +56
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)?;
Copy link
Collaborator

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?

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