Skip to content

Commit 8566650

Browse files
committed
displayio api update
1 parent 18110bf commit 8566650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/display_button_spritebutton_tft_featherwing_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import board
77
import digitalio
88
import displayio
9+
import fourwire
910
import terminalio
1011
from adafruit_hx8357 import HX8357 # TFT Featherwing display driver
1112

@@ -20,7 +21,7 @@
2021
spi = board.SPI()
2122
tft_cs = board.D9
2223
tft_dc = board.D10
23-
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
24+
display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs)
2425
display = HX8357(display_bus, width=DISPLAY_WIDTH, height=DISPLAY_HEIGHT)
2526
display.rotation = 0
2627
_touch_flip = (False, True)

0 commit comments

Comments
 (0)