Skip to content

Commit f732181

Browse files
committed
Automatic formatting for ssd1680.py.
1 parent 8342c3f commit f732181

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

adafruit_epd/ssd1680.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,15 @@ class Adafruit_SSD1680(Adafruit_EPD):
8181

8282
# pylint: disable=too-many-arguments
8383
def __init__(
84-
self, width: int, height: int, spi: SPI, *, cs_pin: DigitalInOut,
85-
dc_pin: DigitalInOut, sramcs_pin: DigitalInOut, rst_pin: DigitalInOut,
84+
self,
85+
width: int,
86+
height: int,
87+
spi: SPI,
88+
*,
89+
cs_pin: DigitalInOut,
90+
dc_pin: DigitalInOut,
91+
sramcs_pin: DigitalInOut,
92+
rst_pin: DigitalInOut,
8693
busy_pin: DigitalInOut
8794
) -> None:
8895
super().__init__(
@@ -121,7 +128,7 @@ def __init__(
121128
self.set_color_buffer(1, False)
122129
# pylint: enable=too-many-arguments
123130

124-
def begin(self, reset: bool=True) -> None:
131+
def begin(self, reset: bool = True) -> None:
125132
"""Begin communication with the display and set basic settings"""
126133
if reset:
127134
self.hardware_reset()
@@ -194,7 +201,9 @@ def write_ram(self, index: Union[0, 1]) -> Any:
194201
return self.command(_SSD1680_WRITE_REDRAM, end=False)
195202
raise RuntimeError("RAM index must be 0 or 1")
196203

197-
def set_ram_address(self, x: int, y: int) -> None: # pylint: disable=unused-argument, no-self-use
204+
def set_ram_address(
205+
self, x: int, y: int
206+
) -> None: # pylint: disable=unused-argument, no-self-use
198207
"""Set the RAM address location, not used on this chipset but required by
199208
the superclass"""
200209
# Set RAM X address counter

0 commit comments

Comments
 (0)