Skip to content

Commit c5f5156

Browse files
committed
Fixed TFT Gizmo to actually use gizmo library
1 parent 253dda1 commit c5f5156

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

examples/gizmo_tft_demo.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,10 @@
77
import displayio
88
import terminalio
99
from adafruit_display_text import label
10-
from adafruit_st7789 import ST7789
10+
from adafruit_gizmo import tft_gizmo
1111

12-
# Release any resources currently in use for the displays
13-
displayio.release_displays()
14-
15-
spi = busio.SPI(board.SCL, MOSI=board.SDA)
16-
tft_cs = board.RX
17-
tft_dc = board.TX
18-
tft_backlight = board.A3
19-
20-
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
21-
22-
display = ST7789(display_bus, width=240, height=240, rowstart=80,
23-
backlight_pin=tft_backlight, rotation=180)
12+
# Create the TFT Gizmo display
13+
display = tft_gizmo.TFT_Gizmo()
2414

2515
# Make the display context
2616
splash = displayio.Group(max_size=10)

0 commit comments

Comments
 (0)