Skip to content

Commit 3e63dc3

Browse files
authored
Merge pull request #25 from PaulskPt/st7789_init_mod
ST7789.__init__.py small modifications
2 parents 5c16bae + 95d1dff commit 3e63dc3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: library/ST7789/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ def __init__(self, port, cs, dc, backlight=None, rst=None, width=240,
148148

149149
# Setup reset as output (if provided).
150150
if rst is not None:
151-
GPIO.setup(rst, GPIO.OUT)
152-
153-
self.reset()
151+
GPIO.setup(self._rst, GPIO.OUT)
152+
self.reset()
154153
self._init()
155154

156155
def send(self, data, is_data=True, chunk_size=4096):

0 commit comments

Comments
 (0)