Automatic formatting for ssd1680.py.

This commit is contained in:
sdomoszlai13 2023-05-10 11:10:33 +02:00
parent 8342c3fd42
commit f732181a3e

View file

@ -81,8 +81,15 @@ class Adafruit_SSD1680(Adafruit_EPD):
# pylint: disable=too-many-arguments # pylint: disable=too-many-arguments
def __init__( def __init__(
self, width: int, height: int, spi: SPI, *, cs_pin: DigitalInOut, self,
dc_pin: DigitalInOut, sramcs_pin: DigitalInOut, rst_pin: DigitalInOut, width: int,
height: int,
spi: SPI,
*,
cs_pin: DigitalInOut,
dc_pin: DigitalInOut,
sramcs_pin: DigitalInOut,
rst_pin: DigitalInOut,
busy_pin: DigitalInOut busy_pin: DigitalInOut
) -> None: ) -> None:
super().__init__( super().__init__(
@ -121,7 +128,7 @@ class Adafruit_SSD1680(Adafruit_EPD):
self.set_color_buffer(1, False) self.set_color_buffer(1, False)
# pylint: enable=too-many-arguments # pylint: enable=too-many-arguments
def begin(self, reset: bool=True) -> None: def begin(self, reset: bool = True) -> None:
"""Begin communication with the display and set basic settings""" """Begin communication with the display and set basic settings"""
if reset: if reset:
self.hardware_reset() self.hardware_reset()
@ -194,7 +201,9 @@ class Adafruit_SSD1680(Adafruit_EPD):
return self.command(_SSD1680_WRITE_REDRAM, end=False) return self.command(_SSD1680_WRITE_REDRAM, end=False)
raise RuntimeError("RAM index must be 0 or 1") raise RuntimeError("RAM index must be 0 or 1")
def set_ram_address(self, x: int, y: int) -> None: # pylint: disable=unused-argument, no-self-use def set_ram_address(
self, x: int, y: int
) -> None: # pylint: disable=unused-argument, no-self-use
"""Set the RAM address location, not used on this chipset but required by """Set the RAM address location, not used on this chipset but required by
the superclass""" the superclass"""
# Set RAM X address counter # Set RAM X address counter