Skip to content

Commit 4daab36

Browse files
authored
Merge pull request #37 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 10d8e36 + dfe653a commit 4daab36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/bmp280_normal_mode.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
# Create sensor object, communicating over 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
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c)
1617

1718
# OR Create sensor object, communicating over the board's default SPI bus

examples/bmp280_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
# Create sensor object, communicating over the board's default I2C bus
1313
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
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c)
1516

1617
# OR Create sensor object, communicating over the board's default SPI bus

0 commit comments

Comments
 (0)