Skip to content

Commit 791d423

Browse files
committed
Make compatible with Writer class
1 parent d842017 commit 791d423

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pcd8544.py

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ def __init__(self, spi, cs, dc, rst=None):
7575
self.dc = dc # data HIGH, command LOW
7676
self.rst = rst # reset, active LOW
7777

78+
self.height = HEIGHT # For Writer class
79+
self.width = WIDTH
80+
7881
self.cs.init(self.cs.OUT, value=1)
7982
self.dc.init(self.dc.OUT, value=0)
8083

pcd8544_fb.py

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ def __init__(self, spi, cs, dc, rst=None):
7575
self.dc = dc # data HIGH, command LOW
7676
self.rst = rst # reset, active LOW
7777

78+
self.height = HEIGHT # For Writer class
79+
self.width = WIDTH
80+
7881
self.cs.init(self.cs.OUT, value=1)
7982
self.dc.init(self.dc.OUT, value=0)
8083

0 commit comments

Comments
 (0)