Skip to content

add power property to _SSD1306 #26

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

Merged
merged 4 commits into from
Sep 26, 2019
Merged

Conversation

iraytrace
Copy link

In an application it is nice to know if the display is on or off. This is especially true in situations where the display is turned off after an idle period. This change implements a "power" property which indicates whether the display is currently powered on.

@@ -232,3 +240,4 @@ def write_framebuf(self):
self.dc_pin.value = 1
with self.spi_device as spi:
spi.write(self.buffer)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi, Looks like the build is failing because of this extra line on the end.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for adding this.

@makermelissa makermelissa merged commit c997737 into adafruit:master Sep 26, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 27, 2019
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