Skip to content

Commit 18afd61

Browse files
authored
Merge pull request #59 from adamcandy/fix-page-addressing-mode-spi
Fix SPI class with new page addressing mode option
2 parents 8a4ac4f + f15df77 commit 18afd61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ssd1306.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ def __init__(
291291
phase=0,
292292
page_addressing=False
293293
):
294-
if page_addressing:
294+
self.page_addressing = page_addressing
295+
if self.page_addressing:
295296
raise NotImplementedError(
296297
"Page addressing mode with SPI has not yet been implemented."
297298
)

0 commit comments

Comments
 (0)