whitespace
This commit is contained in:
parent
723d5618a8
commit
9fa515e68f
1 changed files with 6 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ _SSD1680_DISP_CTRL2 = const(0x22)
|
|||
_SSD1680_MASTER_ACTIVATE = const(0x20)
|
||||
_SSD1680_DEEP_SLEEP = const(0x10)
|
||||
|
||||
|
||||
class Adafruit_SSD1680(Adafruit_EPD):
|
||||
"""Driver for SSD1680 ePaper display, default driver."""
|
||||
|
||||
|
|
@ -46,9 +47,11 @@ class Adafruit_SSD1680(Adafruit_EPD):
|
|||
self.busy_pin = busy_pin
|
||||
|
||||
self.initialize_buffers(width, height)
|
||||
|
||||
# pylint: enable=too-many-arguments, useless-parent-delegation
|
||||
|
||||
|
||||
|
||||
def initialize_buffers(self, width, height):
|
||||
"""Initialize width height stride buffers"""
|
||||
stride = width
|
||||
|
|
@ -128,6 +131,7 @@ class Adafruit_SSD1680(Adafruit_EPD):
|
|||
self.command(_SSD1680_DEEP_SLEEP, bytearray([0x01]))
|
||||
time.sleep(0.1)
|
||||
|
||||
|
||||
class Adafruit_SSD1680Z(Adafruit_SSD1680):
|
||||
"""Driver for SSD1680Z ePaper display, overriding SSD1680 settings."""
|
||||
|
||||
|
|
@ -146,7 +150,8 @@ class Adafruit_SSD1680Z(Adafruit_SSD1680):
|
|||
rst_pin=rst_pin,
|
||||
busy_pin=busy_pin,
|
||||
)
|
||||
# pylint: enable=too-many-arguments, useless-parent-delegation
|
||||
|
||||
# pylint: enable=too-many-arguments, useless-parent-delegation
|
||||
|
||||
def power_up(self):
|
||||
"""Power up sequence specifically for SSD1680Z."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue