Skip to content

Commit d369499

Browse files
authored
Update minitft_featherwing.py
1 parent 38e1535 commit d369499

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_featherwing/minitft_featherwing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def __init__(self, address=0x5E, i2c=None, spi=None):
7474
self._backlight.duty_cycle = 0
7575
self._ss.pin_mode_bulk(self._button_mask, self._ss.INPUT_PULLUP)
7676
displayio.release_displays()
77-
spi.try_lock()
77+
while not spi.try_lock():
78+
pass
7879
spi.configure(baudrate=24000000)
7980
spi.unlock()
8081
self._ss.pin_mode(8, self._ss.OUTPUT)

0 commit comments

Comments
 (0)