Skip to content

Commit 82096c6

Browse files
committed
Moved release_displays to the beginning
1 parent b3d1a3a commit 82096c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/hx8357_simpletest.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
from adafruit_display_text import label
1010
from adafruit_hx8357 import HX8357
1111

12+
# Release any resources currently in use for the displays
13+
displayio.release_displays()
14+
1215
spi = board.SPI()
1316
tft_cs = board.D9
1417
tft_dc = board.D10
1518

16-
displayio.release_displays()
1719
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
1820

1921
display = HX8357(display_bus, width=480, height=320)

0 commit comments

Comments
 (0)