Skip to content

Commit 24c8a87

Browse files
authored
Merge pull request #23 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 492cf0d + dd9d2cb commit 24c8a87

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/neotrellis_multitrellis_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from adafruit_neotrellis.multitrellis import MultiTrellis
88

99
# Create the I2C object for the NeoTrellis
10-
i2c_bus = board.I2C()
10+
i2c_bus = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112

1213
# Create the NeoTrellis object
1314
"""

examples/neotrellis_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
from adafruit_neotrellis.neotrellis import NeoTrellis
77

88
# create the i2c object for the trellis
9-
i2c_bus = board.I2C()
9+
i2c_bus = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011

1112
# create the trellis
1213
trellis = NeoTrellis(i2c_bus)

0 commit comments

Comments
 (0)