Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/buttons_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import board
import displayio
import fourwire
import terminalio
from adafruit_button import Button
from adafruit_hx8357 import HX8357
Expand All @@ -25,7 +26,7 @@
tft_cs = board.D9
tft_dc = board.D10

display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs)
display = HX8357(display_bus, width=480, height=320, rotation=0)

i2c = board.I2C() # uses board.SCL and board.SDA
Expand Down
3 changes: 2 additions & 1 deletion examples/touchpaint_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import board
import displayio
import fourwire
from adafruit_hx8357 import HX8357

import adafruit_ft5336
Expand All @@ -21,7 +22,7 @@
tft_cs = board.D9
tft_dc = board.D10

display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs)
# display is rotated to align x, y with touch screen x, y
display = HX8357(display_bus, width=320, height=480, rotation=90)

Expand Down