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 screens in the SH1107 driver #377

Merged
merged 5 commits into from
Jul 29, 2023
Merged

Added support for 128x128 screens in the SH1107 driver #377

merged 5 commits into from
Jul 29, 2023

Conversation

QuicksandDesignStudio
Copy link
Contributor

@QuicksandDesignStudio QuicksandDesignStudio commented Jul 27, 2023

Small update to the sh1107 driver (luma/oled/device/init.py). Added support for 128 x 128 screens by including
(128, 128): dict(multiplex=0x7F, displayoffset=0x00)
in the settings dict in the sh1107 object. This adds support for oleds like this one - https://www.adafruit.com/product/5297

multiplex and displayoffset values from Adafruit's library here https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SH1107

SH1107 datasheet here
https://cdn-shop.adafruit.com/product-files/5297/SH1107V2.1.pdf

@QuicksandDesignStudio
Copy link
Contributor Author

Apologies for the commit with trailing whitespaces. Removed.

Copy link
Collaborator

@thijstriemstra thijstriemstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! can you add:

  • your name to CONTRIBUTORS.rst
  • the datasheet pdf to doc/tech-spec

@QuicksandDesignStudio
Copy link
Contributor Author

Done!

Copy link
Collaborator

@thijstriemstra thijstriemstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@thijstriemstra thijstriemstra merged commit eb6d321 into rm-hull:master Jul 29, 2023
7 checks passed
@QuicksandDesignStudio QuicksandDesignStudio deleted the 128-by-128-support-for-sh1107-driver branch July 29, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants