Skip to content

Commit b202863

Browse files
committed
lint
1 parent f557bef commit b202863

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

adafruit_epd/epd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def image(self, image):
346346
pix = image.load()
347347
# clear out any display buffers
348348
self.fill(Adafruit_EPD.WHITE)
349-
349+
350350
for y in range(image.size[1]):
351351
for x in range(image.size[0]):
352352
pixel = pix[x, y]

adafruit_epd/ssd1675b.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Adafruit_SSD1675B(Adafruit_EPD):
9494
# pylint: disable=too-many-arguments
9595
def __init__(self, width, height, spi, *, cs_pin, dc_pin, sramcs_pin, rst_pin, busy_pin):
9696
super(Adafruit_SSD1675B, self).__init__(width, height, spi, cs_pin, dc_pin,
97-
sramcs_pin, rst_pin, busy_pin)
97+
sramcs_pin, rst_pin, busy_pin)
9898
if width % 8 != 0:
9999
width += (8 - width % 8)
100100

@@ -155,7 +155,8 @@ def power_up(self):
155155
# Set ram X start/end postion
156156
self.command(_SSD1675B_SET_RAMXPOS, bytearray([0x00, self._width // 8]))
157157
# Set ram Y start/end postion
158-
self.command(_SSD1675B_SET_RAMYPOS, bytearray([0x0, 0x0, self._height-1, (self._height-1) >> 8]))
158+
self.command(_SSD1675B_SET_RAMYPOS,
159+
bytearray([0x0, 0x0, self._height-1, (self._height-1) >> 8]))
159160

160161
# Border color
161162
self.command(_SSD1675B_WRITE_BORDER, bytearray([0x03]))

examples/epd_blinka.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
#display = Adafruit_IL0373(128, 296, spi, # 2.9" Tri-color display
3939
#display = Adafruit_IL0398(400, 300, spi, # 4.2" Tri-color display
4040
#display = Adafruit_IL0373(104, 212, spi, # 2.13" Tri-color display
41-
cs_pin=ecs, dc_pin=dc, sramcs_pin=srcs,
42-
rst_pin=rst, busy_pin=busy)
41+
cs_pin=ecs, dc_pin=dc, sramcs_pin=srcs,
42+
rst_pin=rst, busy_pin=busy)
4343

4444
display.rotation = 3
4545
# Create blank image for drawing.

0 commit comments

Comments
 (0)