Skip to content

Commit 9010050

Browse files
committed
linting
1 parent e695787 commit 9010050

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

adafruit_epd/epd.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(self, width, height, spi, cs_pin, dc_pin, sramcs_pin, rst_pin, busy
8282
self.black_invert = self.red_invert = True
8383
self.hardware_reset()
8484

85-
def display(self):
85+
def display(self): # pylint: disable=too-many-branches
8686
"""show the contents of the display buffer"""
8787
self.power_up()
8888

@@ -120,7 +120,6 @@ def display(self):
120120
self.spi_device.unlock()
121121
time.sleep(.002)
122122

123-
124123
if self.sram:
125124
while not self.spi_device.try_lock():
126125
pass

adafruit_epd/il91874.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@
5656
_IL91874_RESOLUTION = const(0x61)
5757
_IL91874_VCM_DC_SETTING = const(0x82)
5858

59+
# pylint: disable=line-too-long
5960
_LUT_VCOMDC = b'\x00\x00\x00\x1a\x1a\x00\x00\x01\x00\n\n\x00\x00\x08\x00\x0e\x01\x0e\x01\x10\x00\n\n\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\n\x00#\x00\x00\x00\x01'
6061
_LUT_WW = b'\x90\x1a\x1a\x00\x00\x01@\n\n\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x80\n\n\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\n\x00#\x00\x00\x00\x01'
6162
_LUT_BW = b'\xa0\x1a\x1a\x00\x00\x01\x00\n\n\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x90\n\n\x00\x00\x08\xb0\x04\x10\x00\x00\x05\xb0\x03\x0e\x00\x00\n\xc0#\x00\x00\x00\x01'
6263
_LUT_BB = b'\x90\x1a\x1a\x00\x00\x01@\n\n\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x80\n\n\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\n\x00#\x00\x00\x00\x01'
6364
_LUT_WB = b'\x90\x1a\x1a\x00\x00\x01 \n\n\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x10\n\n\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\n\x00#\x00\x00\x00\x01'
65+
# pylint: enable=line-too-long
6466

6567
class Adafruit_IL91874(Adafruit_EPD):
6668
"""driver class for Adafruit IL91874 ePaper display breakouts"""
@@ -126,11 +128,11 @@ def power_up(self):
126128
self.command(_IL91874_CDI, bytearray([0x87]))
127129

128130
# Look Up Tables
129-
self.command(_IL91874_LUT1, _LUT_VCOMDC);
130-
self.command(_IL91874_LUTWW, _LUT_WW);
131-
self.command(_IL91874_LUTBW, _LUT_BW);
132-
self.command(_IL91874_LUTWB, _LUT_WB);
133-
self.command(_IL91874_LUTBB, _LUT_BB);
131+
self.command(_IL91874_LUT1, _LUT_VCOMDC)
132+
self.command(_IL91874_LUTWW, _LUT_WW)
133+
self.command(_IL91874_LUTBW, _LUT_BW)
134+
self.command(_IL91874_LUTWB, _LUT_WB)
135+
self.command(_IL91874_LUTBB, _LUT_BB)
134136

135137
_b0 = (self._width >> 8) & 0xFF
136138
_b1 = self._width & 0xFF

0 commit comments

Comments
 (0)