Skip to content

Commit c410494

Browse files
committed
some lintin
1 parent 03b18bf commit c410494

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

adafruit_epd/ssd1608.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
_SSD1608_DISP_CTRL2 = const(0x22)
5151
_SSD1608_WRITE_RAM = const(0x24)
5252
_SSD1608_READ_RAM = const(0x25)
53-
_SSD1608_VCOM_SENSE = const(0x28)
54-
_SSD1608_VCOM_DURATION = const(0x29)
53+
_SSD1608_VCOM_SENSE = const(0x28)
54+
_SSD1608_VCOM_DURATION = const(0x29)
5555
_SSD1608_WRITE_VCOM = const(0x2C)
5656
_SSD1608_READ_OTP = const(0x2D)
5757
_SSD1608_WRITE_LUT = const(0x32)
@@ -63,14 +63,14 @@
6363
_SSD1608_SET_RAMXCOUNT = const(0x4E)
6464
_SSD1608_SET_RAMYCOUNT = const(0x4F)
6565
_SSD1608_NOP = const(0xFF)
66-
_LUT_DATA = b'\x02\x02\x01\x11\x12\x12""fiiYX\x99\x99\x88\x00\x00\x00\x00\xf8\xb4\x13Q5QQ\x19\x01\x00'
66+
_LUT_DATA = b'\x02\x02\x01\x11\x12\x12""fiiYX\x99\x99\x88\x00\x00\x00\x00\xf8\xb4\x13Q5QQ\x19\x01\x00' # pylint: disable=line-too-long
6767

6868
class Adafruit_SSD1608(Adafruit_EPD):
6969
"""driver class for Adafruit SSD1608 ePaper display breakouts"""
7070
# pylint: disable=too-many-arguments
7171
def __init__(self, width, height, spi, *, cs_pin, dc_pin, sramcs_pin, rst_pin, busy_pin):
7272
super(Adafruit_SSD1608, self).__init__(width, height, spi, cs_pin, dc_pin,
73-
sramcs_pin, rst_pin, busy_pin)
73+
sramcs_pin, rst_pin, busy_pin)
7474

7575
if height % 8 != 0:
7676
height += (8 - height % 8)

examples/epd_bitmap.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
import board
44
from adafruit_epd.epd import Adafruit_EPD
55
from adafruit_epd.il0373 import Adafruit_IL0373
6-
from adafruit_epd.il91874 import Adafruit_IL91874
7-
from adafruit_epd.il0398 import Adafruit_IL0398
6+
from adafruit_epd.il91874 import Adafruit_IL91874 # pylint: disable=unused-import
7+
from adafruit_epd.il0398 import Adafruit_IL0398 # pylint: disable=unused-import
8+
from adafruit_epd.ssd1608 import Adafruit_SSD1608 # pylint: disable=unused-import
89

910
# create the spi device and pins we will need
1011
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
@@ -16,6 +17,7 @@
1617

1718
# give them all to our driver
1819
print("Creating display")
20+
#display = Adafruit_SSD1608(200, 200, spi, # 1.54" HD mono display
1921
#display = Adafruit_IL91874(176, 264, spi, # 2.7" Tri-color display
2022
#display = Adafruit_IL0373(152, 152, spi, # 1.54" Tri-color display
2123
#display = Adafruit_IL0373(128, 296, spi, # 2.9" Tri-color display
@@ -28,9 +30,9 @@
2830
#display.set_black_buffer(1, False)
2931
#display.set_color_buffer(1, False)
3032

31-
display.rotation = 3
33+
display.rotation = 0
3234

33-
FILENAME = "blinka.bmp"
35+
FILENAME = "blinka154mono.bmp"
3436

3537
def read_le(s):
3638
# as of this writting, int.from_bytes does not have LE support, DIY!
@@ -44,8 +46,7 @@ def read_le(s):
4446
class BMPError(Exception):
4547
pass
4648

47-
48-
def display_bitmap(epd, filename):
49+
def display_bitmap(epd, filename): # pylint: disable=too-many-locals, too-many-branches
4950
try:
5051
f = open("/" + filename, "rb")
5152
except OSError:

0 commit comments

Comments
 (0)