Skip to content

Commit 40a0640

Browse files
authored
Merge pull request #13 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents e00c490 + ee3895a commit 40a0640

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/vl53l1x_set_address_multiple_sensors.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
import adafruit_vl53l1x
1818

1919
# Define the I2C pins.
20-
i2c = board.I2C()
20+
i2c = board.I2C() # uses board.SCL and board.SDA
21+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2122

2223
xshut = [
2324
# Update the D6 and D5 pins to match the pins to which you wired your sensor XSHUT pins.

examples/vl53l1x_simpletest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
import board
1111
import adafruit_vl53l1x
1212

13-
i2c = board.I2C()
13+
i2c = board.I2C() # uses board.SCL and board.SDA
14+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1415

1516
vl53 = adafruit_vl53l1x.VL53L1X(i2c)
1617

0 commit comments

Comments
 (0)