Skip to content

Commit 362591d

Browse files
authored
Merge pull request #24 from FoamyGuy/displayio_api_update
displayio API updates
2 parents ab401ba + 352e042 commit 362591d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ Usage Example
4444
4545
import board
4646
import displayio
47+
import fourwire
4748
from adafruit_st7735 import ST7735
4849
4950
spi = board.SPI()
5051
tft_cs = board.D5
5152
tft_dc = board.D6
5253
5354
displayio.release_displays()
54-
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
55+
display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
5556
5657
display = ST7735(display_bus, width=128, height=128)
5758

examples/st7735_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import board
1010
import displayio
11+
import fourwire
1112

1213
from adafruit_st7735 import ST7735
1314

@@ -18,7 +19,7 @@
1819
tft_cs = board.D5
1920
tft_dc = board.D6
2021

21-
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
22+
display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
2223

2324
display = ST7735(display_bus, width=128, height=128)
2425

0 commit comments

Comments
 (0)