Skip to content

Commit

Permalink
Merge pull request #35 from xgpt/main
Browse files Browse the repository at this point in the history
moved "displayio.release_displays() before spi init.
  • Loading branch information
Neradoc committed Jan 3, 2023
2 parents 1b29123 + 4153d10 commit efb7d71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Usage Example
import displayio
from adafruit_st7789 import ST7789
displayio.release_displays()
spi = board.SPI()
while not spi.try_lock():
pass
Expand All @@ -46,7 +48,6 @@ Usage Example
tft_cs = board.D5
tft_dc = board.D6
displayio.release_displays()
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
display = ST7789(display_bus, width=240, height=240, rowstart=80)
Expand Down

0 comments on commit efb7d71

Please sign in to comment.