Skip to content

Commit fb73917

Browse files
authored
Merge pull request #24 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 3d806d9 + cdc0902 commit fb73917

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/vcnl4010_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
import adafruit_vcnl4010
99

1010

11-
i2c = board.I2C()
11+
i2c = board.I2C() # uses board.SCL and board.SDA
12+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1213
sensor = adafruit_vcnl4010.VCNL4010(i2c)
1314

1415
# You can optionally adjust the sensor LED current. The default is 200mA

0 commit comments

Comments
 (0)