Skip to content

Updated MiniTFT FeatherWing displayio stuff #46

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
Sep 18, 2019
Merged
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
6 changes: 1 addition & 5 deletions adafruit_featherwing/minitft_featherwing.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class MiniTFTFeatherWing:
(1 << BUTTON_B))
#pylint: disable-msg=too-many-arguments
def __init__(self, address=0x5E, i2c=None, spi=None, cs=None, dc=None):
displayio.release_displays()
if i2c is None:
i2c = board.I2C()
if spi is None:
Expand All @@ -77,11 +78,6 @@ def __init__(self, address=0x5E, i2c=None, spi=None, cs=None, dc=None):
self._backlight = PWMOut(self._ss, 5)
self._backlight.duty_cycle = 0
self._ss.pin_mode_bulk(self._button_mask, self._ss.INPUT_PULLUP)
displayio.release_displays()
while not spi.try_lock():
pass
spi.configure(baudrate=24000000)
spi.unlock()
self._ss.pin_mode(8, self._ss.OUTPUT)
self._ss.digital_write(8, True) # Reset the Display via Seesaw
display_bus = displayio.FourWire(spi, command=dc, chip_select=cs)
Expand Down