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.
1 parent fa5e15c commit 381789dCopy full SHA for 381789d
adafruit_crickit/crickit.py
@@ -302,5 +302,9 @@ def reset(self):
302
"""Reset the whole Crickit board."""
303
self._seesaw.sw_reset()
304
305
-crickit = Crickit(Seesaw(busio.I2C(board.SCL, board.SDA))) # pylint: disable=invalid-name
+crickit = None
306
"""A singleton instance to control a single Crickit board, controlled by the default I2C pins."""
307
+
308
+# Sphinx's board is missing real pins so skip the constructor in that case.
309
+if "SCL" in dir(board):
310
+ crickit = Crickit(Seesaw(busio.I2C(board.SCL, board.SDA))) # pylint: disable=invalid-name
0 commit comments