Skip to content

Commit 642d1bd

Browse files
committed
Making PyLint happy
1 parent 43ccd1d commit 642d1bd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

adafruit_displayio_ssd1306.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* `Monochrome 128x32 SPI OLED graphic display <https://www.adafruit.com/product/661>`_
2323
* `Adafruit FeatherWing OLED - 128x32 OLED <https://www.adafruit.com/product/2900>`_
2424
* Monochrome 0.49" 64x32 I2C OLED graphic display
25-
* Might work on other sub-128 width display: Dots 72x40, 64x48, 96x16
25+
* Might work on other sub-128 width display: Dots 72x40, 64x48, 96x16
2626
2727
**Software and Dependencies:**
2828
@@ -82,7 +82,7 @@ def __init__(
8282
init_sequence[16] = height - 1 # patch mux ratio
8383
if height == 32 and width == 64: # FIX ME
8484
init_sequence[16] = 64 - 1 # FORCED for 64x32 because it fail with formula
85-
if (height == 32 or height == 16) and (width != 64):
85+
if height in (32, 16) and width != 64:
8686
init_sequence[25] = 0x02 # patch com configuration
8787
col_offset = (
8888
0 if width == 128 else (128 - width) // 2

examples/displayio_ssd1306_64x32_simpletest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@
4040
inner_sprite = displayio.TileGrid(inner_bitmap, pixel_shader=inner_palette, x=1, y=1)
4141
splash.append(inner_sprite)
4242

43-
text = "Hello"
44-
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF, x=2, y=6)
43+
TEXT1 = "Hello"
44+
text_area = label.Label(terminalio.FONT, text=TEXT1, color=0xFFFFFF, x=2, y=6)
4545
splash.append(text_area)
4646

47-
text = "World"
48-
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF, x=32, y=15)
47+
TEXT2 = "World"
48+
text_area = label.Label(terminalio.FONT, text=TEXT2, color=0xFFFFFF, x=32, y=15)
4949
splash.append(text_area)
5050

51-
text = "9876543210"
52-
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF, x=2, y=24)
51+
TEXT3 = "9876543210"
52+
text_area = label.Label(terminalio.FONT, text=TEXT3, color=0xFFFFFF, x=2, y=24)
5353
splash.append(text_area)
5454

5555
while True:

0 commit comments

Comments
 (0)