From 74d457513a3fc4a77bd34ee8106757c1c80afd19 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 11 Nov 2024 10:44:46 +0000 Subject: [PATCH] Reset if pin is specified. Fix regression raised in #33. --- st7789/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/st7789/__init__.py b/st7789/__init__.py index 17f8a53..45456c4 100644 --- a/st7789/__init__.py +++ b/st7789/__init__.py @@ -163,6 +163,7 @@ def __init__( # Setup reset as output (if provided). if rst is not None: self._rst = gpiodevice.get_pin(rst, "st7789-rst", OUTL) + self.reset() self._init()