We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 401f6a2 commit d960c75Copy full SHA for d960c75
adafruit_featherwing/shared.py
@@ -30,6 +30,8 @@
30
"""
31
32
import board
33
-import busio
34
-
35
-I2C_BUS = busio.I2C(board.SCL, board.SDA)
+try:
+ I2C_BUS = board.I2C()
+except AttributeError:
36
+ import busio
37
+ I2C_BUS = busio.I2C(board.SCL, board.SDA)
docs/examples.rst
@@ -39,8 +39,8 @@ Ensure your device works with this simple test.
39
:caption: examples/featherwing_matrix_simpletest.py
40
:linenos:
41
42
-Other Tests
43
-------------
+Other Examples
+---------------
44
45
.. literalinclude:: ../examples/featherwing_dotstar_palette_example.py
46
:caption: examples/featherwing_dotstar_palette_example.py
0 commit comments