Skip to content

Commit 771fa0c

Browse files
committed
Add board.DISPLAY object ffor passing as clue.display
1 parent 828d792 commit 771fa0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_clue.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ def __init__(self):
218218
# Barometric pressure sensor:
219219
self._pressure = adafruit_bmp280.Adafruit_BMP280_I2C(self._i2c)
220220

221+
# Create displayio object for passing.
222+
self.display = board.DISPLAY
223+
221224
def _touch(self, i):
222225
if not isinstance(self._touches[i], touchio.TouchIn):
223226
# First time referenced. Get the pin from the slot for this touch

0 commit comments

Comments
 (0)