Skip to content

Commit 842bc14

Browse files
committed
switch to using I2C singleton
1 parent 617bb07 commit 842bc14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_crickit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,5 +378,5 @@ def reset(self):
378378
"""A singleton instance to control a single Crickit board, controlled by the default I2C pins."""
379379

380380
# Sphinx's board is missing real pins so skip the constructor in that case.
381-
if "SCL" in dir(board):
382-
crickit = Crickit(Seesaw(busio.I2C(board.SCL, board.SDA))) # pylint: disable=invalid-name
381+
if "I2C" in dir(board):
382+
crickit = Crickit(Seesaw(board.I2C())) # pylint: disable=invalid-name

0 commit comments

Comments
 (0)