Skip to content

Commit 5cdabd8

Browse files
authored
Merge pull request #19 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents c503ceb + ba7d5e7 commit 5cdabd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/si1145_simpletest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
# setup I2C bus using board default
1111
# change as needed for specific boards
12-
i2c = board.I2C()
12+
i2c = board.I2C() # uses board.SCL and board.SDA
13+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1314

1415
# setup sensor
1516
si1145 = adafruit_si1145.SI1145(i2c)

0 commit comments

Comments
 (0)