Skip to content

Commit 95d1dff

Browse files
committed
ST7789.__init__.py small modifications
As discussed in: st7789/__init__.py suggestion for two small changes #22
1 parent 5c16bae commit 95d1dff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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)