Skip to content

Commit 7df4083

Browse files
belimawrdpgeorge
authored andcommitted
drivers/display/ssd1306: Implement SSD1306_I2C poweron method.
After a poweroff(), the poweron() method does a soft power-on and any previous state of the display persists.
1 parent ea6692a commit 7df4083

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/display/ssd1306.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def write_data(self, buf):
124124
self.i2c.stop()
125125

126126
def poweron(self):
127-
pass
127+
self.write_cmd(SET_DISP | 0x01)
128128

129129

130130
class SSD1306_SPI(SSD1306):

0 commit comments

Comments
 (0)