Skip to content

Commit ad6241f

Browse files
committed
Satisfy Pylint W0613, using page_addressing in SPI by alerting not implemented
1 parent abdf533 commit ad6241f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_ssd1306.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ def __init__(
291291
phase=0,
292292
page_addressing=False
293293
):
294+
if page_addressing:
295+
raise NotImplementedError("Page addressing mode with SPI has not yet been implemented.")
296+
294297
self.rate = 10 * 1024 * 1024
295298
dc.switch_to_output(value=0)
296299
self.spi_device = spi_device.SPIDevice(

0 commit comments

Comments
 (0)