We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f6454 commit 5ebddd4Copy full SHA for 5ebddd4
adafruit_pycamera/__init__.py
@@ -529,15 +529,15 @@ def resolution(self, res):
529
self._res_label.text = self.resolutions[res]
530
self.display.refresh()
531
532
- def init_display(self, reset=board.TFT_RESET):
+ def init_display(self, reset=True):
533
"""Initialize the TFT display"""
534
# construct displayio by hand
535
displayio.release_displays()
536
self._display_bus = displayio.FourWire(
537
self._spi,
538
command=board.TFT_DC,
539
chip_select=board.TFT_CS,
540
- reset=reset,
+ reset=board.TFT_RESET if reset else None,
541
baudrate=60_000_000,
542
)
543
self.display = board.DISPLAY
0 commit comments