-
Notifications
You must be signed in to change notification settings - Fork 3
Sh1106 oled screen supported #83
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
base: main
Are you sure you want to change the base?
Conversation
rmoesbergen
left a comment
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.
Black is nog niet helemaal blij. Daarna is pylint ook nog aan de beurt. Vergeet bovendien niet om de bestanden ook toe te voegen aan de package.json.
| @@ -0,0 +1,70 @@ | |||
| """This module provides OLED SSH1106 methods""" | |||
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.
Dit bestand heeft dezelfde inhoud als sh11_scherm.py. Kun je 1 van de 2 verwijderen en misschien een betere naam bedenken?
| """ | ||
| Initializes the OLED screen using the SSH1106 driver. | ||
| Args: |
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.
Deze comments / parameters staan ook al bij init, dat hoeft maar 1 keer.
| instance.initialize_device() | ||
| instance.reinitialize = False | ||
| except RuntimeError: | ||
| if instance.show_warnings == True: |
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.
| if instance.show_warnings == True: | |
| if instance.show_warnings: |
Adding support for a new model of oled display.
The old drivers werent working anymore for this model so this pull request adds support for this model.