Skip to content

Commit 5bdf81f

Browse files
authored
Merge pull request #65 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 55cc95f + dd135f0 commit 5bdf81f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/bme280_normal_mode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
# Create sensor object, using the board's default I2C bus.
1414
i2c = board.I2C() # uses board.SCL and board.SDA
15+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1516
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)
1617

1718
# OR create sensor object, using the board's default SPI bus.

examples/bme280_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
# Create sensor object, using the board's default I2C bus.
99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)
1112

1213
# OR create sensor object, using the board's default SPI bus.

0 commit comments

Comments
 (0)