Skip to content

Commit efb7d71

Browse files
authored
Merge pull request #35 from xgpt/main
moved "displayio.release_displays() before spi init.
2 parents 1b29123 + 4153d10 commit efb7d71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Usage Example
3838
import displayio
3939
from adafruit_st7789 import ST7789
4040
41+
displayio.release_displays()
42+
4143
spi = board.SPI()
4244
while not spi.try_lock():
4345
pass
@@ -46,7 +48,6 @@ Usage Example
4648
tft_cs = board.D5
4749
tft_dc = board.D6
4850
49-
displayio.release_displays()
5051
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
5152
5253
display = ST7789(display_bus, width=240, height=240, rowstart=80)

0 commit comments

Comments
 (0)