Skip to content

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

/// 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