Skip to content

Conversation

@Robbert116
Copy link

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.

@Robbert116 Robbert116 requested a review from a team as a code owner November 21, 2025 15:16
Copy link
Member

@rmoesbergen rmoesbergen left a 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"""
Copy link
Member

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:
Copy link
Member

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:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if instance.show_warnings == True:
if instance.show_warnings:

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.

3 participants