We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 617bb07 + 31d1f6d commit a6100fbCopy full SHA for a6100fb
adafruit_crickit.py
@@ -44,7 +44,6 @@
44
import sys
45
46
import board
47
-import busio
48
49
from micropython import const
50
@@ -378,5 +377,5 @@ def reset(self):
378
377
"""A singleton instance to control a single Crickit board, controlled by the default I2C pins."""
379
380
# 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
+if "I2C" in dir(board):
+ crickit = Crickit(Seesaw(board.I2C())) # pylint: disable=invalid-name
0 commit comments