Skip to content

Commit e622c62

Browse files
authored
Merge pull request #46 from makermelissa/master
Updated MiniTFT FeatherWing displayio stuff
2 parents 65d6c43 + d852956 commit e622c62

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

adafruit_featherwing/minitft_featherwing.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class MiniTFTFeatherWing:
6565
(1 << BUTTON_B))
6666
#pylint: disable-msg=too-many-arguments
6767
def __init__(self, address=0x5E, i2c=None, spi=None, cs=None, dc=None):
68+
displayio.release_displays()
6869
if i2c is None:
6970
i2c = board.I2C()
7071
if spi is None:
@@ -77,11 +78,6 @@ def __init__(self, address=0x5E, i2c=None, spi=None, cs=None, dc=None):
7778
self._backlight = PWMOut(self._ss, 5)
7879
self._backlight.duty_cycle = 0
7980
self._ss.pin_mode_bulk(self._button_mask, self._ss.INPUT_PULLUP)
80-
displayio.release_displays()
81-
while not spi.try_lock():
82-
pass
83-
spi.configure(baudrate=24000000)
84-
spi.unlock()
8581
self._ss.pin_mode(8, self._ss.OUTPUT)
8682
self._ss.digital_write(8, True) # Reset the Display via Seesaw
8783
display_bus = displayio.FourWire(spi, command=dc, chip_select=cs)

0 commit comments

Comments
 (0)