Skip to content

displayio api updates #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025
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 adafruit_featherwing/minitft_featherwing.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import board
import displayio
import fourwire
from adafruit_seesaw.pwmout import PWMOut
from adafruit_seesaw.seesaw import Seesaw
from adafruit_st7735r import ST7735R
Expand Down Expand Up @@ -83,7 +84,7 @@ def __init__(
self._ss.digital_write(8, True) # Reset the Display via Seesaw
self._backlight = PWMOut(self._ss, 5)
self._backlight.duty_cycle = 0
display_bus = displayio.FourWire(spi, command=dc_pin, chip_select=cs_pin)
display_bus = fourwire.FourWire(spi, command=dc_pin, chip_select=cs_pin)
self.display = ST7735R(
display_bus, width=160, height=80, colstart=24, rotation=270, bgr=True
)
Expand Down
3 changes: 2 additions & 1 deletion adafruit_featherwing/tft_featherwing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import board
import digitalio
import displayio
import fourwire

try:
from adafruit_stmpe610 import Adafruit_STMPE610_SPI
Expand Down Expand Up @@ -70,7 +71,7 @@ def __init__(
if dc_pin is None:
dc_pin = board.D10

self._display_bus = displayio.FourWire(spi, command=dc_pin, chip_select=cs_pin)
self._display_bus = fourwire.FourWire(spi, command=dc_pin, chip_select=cs_pin)

# Initialize SD Card
if sd_cs_pin is None:
Expand Down