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

Ability to specify custom I2C address and display size #5

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

Conversation

Isja-krass
Copy link

Using this module, i faced the exact same issue as this one here. Until now it was not possible to to change the I2C address or the Bus-ID, because they were simply hard coded. Especially when you work with multiple displays or use Dev-Boards, witch has multiple I2C-Ports, this is a bit annoying. Yes, i understand the thought having only one selector for user friendliness. Because the user can simply choose the corresponding IC, and need not to figure out witch port to use or on witch address the IC is listening on.
So i don´t removed it.

Another thing that i noticed is, that there seems to be variables, witch already defines display sizes, but only one size (20x4) is specified in the size selector. I took the opportunity to simply add an option for the smaller 16x2 displays.

Finlay what i did here is:

  • Added two new inputs (I2C Bus Number, 2C Device-Address)
  • Added a new display size (16x2)
  • Added the Custom Address option to the variant selector

Hope this contribution helps. Please feel free to contact me if i missed anything or if you have some improvements.

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.

1 participant