Skip to content

Commit c1088ff

Browse files
authored
Merge pull request #26 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 1c19d0c + e790f95 commit c1088ff

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/dps310_low_power_weather_station.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from adafruit_dps310 import advanced
1818

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

2223
dps310.reset()

examples/dps310_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_dps310.basic import DPS310
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
dps310 = DPS310(i2c)
1011

1112
while True:

examples/dps310_simpletest_advanced.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_dps310.advanced import DPS310_Advanced as DPS310
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
dps310 = DPS310(i2c)
1011

1112
while True:

0 commit comments

Comments
 (0)