Skip to content

Commit c34b8a1

Browse files
authored
Merge pull request #13 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 74e4d90 + da2e013 commit c34b8a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/lps2x_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import board
66
import adafruit_lps2x
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
# uncomment and comment out the line after to use with the LPS22
1011
# lps = adafruit_lps2x.LPS22(i2c)
1112
lps = adafruit_lps2x.LPS25(i2c)

0 commit comments

Comments
 (0)