Skip to content

Commit 3628658

Browse files
authored
Merge pull request #6 from makermelissa/master
Moved release_displays to the beginning
2 parents fa0e3e8 + 048e056 commit 3628658

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
*.mpy
2+
.idea
13
__pycache__
24
_build
35
*.pyc
46
.env
57
build*
68
bundles
9+
*.DS_Store
10+
.eggs
11+
dist
12+
**/*.egg-info

examples/st7735_simpletest.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
import displayio
88
from adafruit_st7735 import ST7735
99

10+
# Release any resources currently in use for the displays
11+
displayio.release_displays()
12+
1013
spi = board.SPI()
1114
tft_cs = board.D5
1215
tft_dc = board.D6
1316

14-
displayio.release_displays()
1517
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
1618

1719
display = ST7735(display_bus, width=128, height=128)

0 commit comments

Comments
 (0)