Skip to content

Commit 6390974

Browse files
authored
Merge pull request #8 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents a4fc793 + 5aae509 commit 6390974

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/vl53l4cd_set_address_multiple_sensors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
import adafruit_vl53l4cd
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/vl53l4cd_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
import board
1414
import adafruit_vl53l4cd
1515

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

1819
vl53 = adafruit_vl53l4cd.VL53L4CD(i2c)
1920

0 commit comments

Comments
 (0)