Skip to content

Commit

Permalink
Merge pull request #25 from PaulskPt/st7789_init_mod
Browse files Browse the repository at this point in the history
ST7789.__init__.py small modifications
  • Loading branch information
Gadgetoid authored Jan 31, 2022
2 parents 5c16bae + 95d1dff commit 3e63dc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions library/ST7789/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ def __init__(self, port, cs, dc, backlight=None, rst=None, width=240,

# Setup reset as output (if provided).
if rst is not None:
GPIO.setup(rst, GPIO.OUT)

self.reset()
GPIO.setup(self._rst, GPIO.OUT)
self.reset()
self._init()

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

0 comments on commit 3e63dc3

Please sign in to comment.